This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { useLocation } from "react-router"; | |
function useQuery() { | |
const location = useLocation(); | |
// Prefer the query string (e.g. /execution?testExecutionId=123) | |
const searchParams = new URLSearchParams(location.search || ""); | |
let testExecutionId = searchParams.get("testExecutionId"); | |
// Fallback: handle malformed pattern like "/execution&testExecutionId=123" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EditorPresetBuilder } from "@atlaskit/editor-common/preset"; | |
import { ComposableEditor } from "@atlaskit/editor-core/composable-editor"; | |
import { usePreset } from "@atlaskit/editor-core/use-preset"; | |
import React, { useRef } from "react"; | |
import { basePlugin } from "@atlaskit/editor-plugins/base"; | |
import { blockTypePlugin } from "@atlaskit/editor-plugins/block-type"; | |
import { textFormattingPlugin } from "@atlaskit/editor-plugins/text-formatting"; | |
import { alignmentPlugin } from "@atlaskit/editor-plugin-alignment"; | |
import { findReplacePlugin } from "@atlaskit/editor-plugin-find-replace"; | |
import { historyPlugin } from "@atlaskit/editor-plugin-history"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EditorPresetBuilder } from "@atlaskit/editor-common/preset"; | |
import { ComposableEditor } from "@atlaskit/editor-core/composable-editor"; | |
import { usePreset } from "@atlaskit/editor-core/use-preset"; | |
import React, { useRef, useCallback } from "react"; | |
import { basePlugin } from "@atlaskit/editor-plugins/base"; | |
import { blockTypePlugin } from "@atlaskit/editor-plugins/block-type"; | |
import { textFormattingPlugin } from "@atlaskit/editor-plugins/text-formatting"; | |
import { alignmentPlugin } from "@atlaskit/editor-plugin-alignment"; | |
import { findReplacePlugin } from "@atlaskit/editor-plugin-find-replace"; | |
import { historyPlugin } from "@atlaskit/editor-plugin-history"; |