mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Fixed review comments issue
This commit is contained in:
@@ -26,7 +26,6 @@ import {
|
||||
import { FieldType } from "@src/constants/fields";
|
||||
import { getFieldProp } from "@src/components/fields";
|
||||
import { getLabelId, getFieldId } from "./utils";
|
||||
import { EXTERNAL_LINKS } from "@src/constants/externalLinks";
|
||||
import { useSnackbar } from "notistack";
|
||||
import { copyToClipboard } from "@src/utils/ui";
|
||||
|
||||
@@ -54,12 +53,6 @@ export default function FieldWrapper({
|
||||
const [projectId] = useAtom(projectIdAtom, projectScope);
|
||||
const [altPress] = useAtom(altPressAtom, projectScope);
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
const documentPath = `${
|
||||
EXTERNAL_LINKS.firebaseProjectbasePath
|
||||
}/${projectId}/firestore/data/~2F${(debugText as string)?.replace(
|
||||
/\//g,
|
||||
"~2F"
|
||||
)}`;
|
||||
return (
|
||||
<div>
|
||||
<Stack
|
||||
@@ -138,14 +131,16 @@ export default function FieldWrapper({
|
||||
</Typography>
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
copyToClipboard(documentPath);
|
||||
copyToClipboard((debugText as string).replace(/\//g, "~2F"));
|
||||
enqueueSnackbar("Copied!");
|
||||
}}
|
||||
>
|
||||
<ContentCopyIcon />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
href={documentPath}
|
||||
href={`https://console.firebase.google.com/project/${projectId}/firestore/data/~2F${(
|
||||
debugText as string
|
||||
).replace(/\//g, "~2F")}`}
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
aria-label="Open in Firebase Console"
|
||||
|
||||
@@ -26,7 +26,6 @@ export const EXTERNAL_LINKS = {
|
||||
|
||||
welcomeVideo:
|
||||
"https://www.youtube.com/watch?v=rJWASZW2ivg&list=PLow2dGbF6XclrTSvW3ug1pRxbGwsIgcWJ&index=1",
|
||||
firebaseProjectbasePath: "https://console.firebase.google.com/project",
|
||||
} as const;
|
||||
|
||||
const WIKI_PATHS = {
|
||||
|
||||
Reference in New Issue
Block a user