Skip to content

Commit

Permalink
Enhanced [UI]: Removed Copied!! -> CheckIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
SOUMITRO-SAHA committed May 19, 2024
1 parent fc958cf commit 4e2c684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import javascript from "highlight.js/lib/languages/javascript";
import styles from "./CodeBlock.module.css";
import "highlight.js/styles/github-dark.css";
import { Button } from "@repo/ui";
import { CopyIcon } from "@radix-ui/react-icons";
import { CheckIcon, CopyIcon } from "@radix-ui/react-icons";

export default function CodeBlock({ block }: { block: any }) {
const code: string = block.properties.title[0].toString();
Expand Down Expand Up @@ -36,7 +36,7 @@ export default function CodeBlock({ block }: { block: any }) {
});
}}
>
{showCopiedMessage ? <span>Copied!!</span> : <CopyIcon className="w-4 h-4" />}
{showCopiedMessage ? <CheckIcon className="w-4 h-4" /> : <CopyIcon className="w-4 h-4" />}
</Button>
</div>
</pre>
Expand Down

0 comments on commit 4e2c684

Please sign in to comment.