From ceef226e26cbedce7f6f4f21618551954a5001cf Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Thu, 1 Feb 2024 03:16:43 -0700 Subject: [PATCH] chore(app): temporarily disable unicode references --- package.json | 2 +- src/components/IconGrid/Panel.tsx | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 2287666..a263546 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@phosphor-icons/homepage", - "version": "2.0.4", + "version": "2.0.5", "license": "MIT", "homepage": "https://phosphoricons.com", "author": { diff --git a/src/components/IconGrid/Panel.tsx b/src/components/IconGrid/Panel.tsx index a36b80c..4cf40a1 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"; @@ -254,13 +254,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 @@ -351,9 +351,9 @@ const Panel = () => {

{entry.name}

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