Skip to content

Commit 01bf2e1

Browse files
committed
chore: Simplify IOCell
1 parent 37d6e88 commit 01bf2e1

10 files changed

Lines changed: 155 additions & 912 deletions

File tree

src/components/shared/CopyText/CopyText.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { copyToClipboard } from "@/utils/string";
99

1010
interface CopyTextProps {
1111
children: string;
12+
displayValue?: string;
1213
className?: string;
1314
alwaysShowButton?: boolean;
1415
compact?: boolean;
@@ -17,6 +18,7 @@ interface CopyTextProps {
1718

1819
export const CopyText = ({
1920
children,
21+
displayValue,
2022
className,
2123
alwaysShowButton = false,
2224
compact = false,
@@ -61,7 +63,7 @@ export const CopyText = ({
6163
isCopied && "text-emerald-400!",
6264
)}
6365
>
64-
{children}
66+
{displayValue ?? children}
6567
</Text>
6668

6769
<Button

src/components/shared/ReactFlow/FlowCanvas/TaskNode/TaskOverview/IOSection/IOCell/IOCell.test.tsx

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)