diff --git a/src/components/IconGrid/Panel.tsx b/src/components/IconGrid/Panel.tsx index 043d01b..ec7d778 100644 --- a/src/components/IconGrid/Panel.tsx +++ b/src/components/IconGrid/Panel.tsx @@ -18,7 +18,7 @@ import { CaretDoubleLeft, CaretDoubleRight, } from "@phosphor-icons/react"; -// import { IconStyle } from "@phosphor-icons/core"; +import { IconStyle } from "@phosphor-icons/core"; import ReactGA from "react-ga4"; import Tabs, { Tab } from "@/components/Tabs"; @@ -255,13 +255,13 @@ const Panel = () => { setCopied(CopyType.SVG_RAW); }; - // const handleCopyUnicode = async () => { - // if (!entry) return; + const handleCopyUnicode = async () => { + if (!entry) return; - // const content = String.fromCharCode(entry.codepoint); - // navigator.clipboard?.writeText(content); - // setCopied(CopyType.UNICODE); - // }; + const content = String.fromCharCode(entry.codepoint); + navigator.clipboard?.writeText(content); + setCopied(CopyType.UNICODE); + }; const handleDownloadSVG = ( event: React.MouseEvent @@ -352,11 +352,11 @@ const Panel = () => {

{entry.name}

- {/* - U+{entry.codepoint.toString(16).toUpperCase()} - */} - available in v{entry.published_in.toFixed(1)}.0+ + U+{entry.codepoint.toString(16).toUpperCase()} + + + available in v{entry.published_in.toFixed(1)}+
@@ -416,13 +416,13 @@ const Panel = () => { onClick={handleCopyDataSVG} /> - {/* */} + /> )}