chore(app): temporarily disable unicode references

This commit is contained in:
rektdeckard
2024-02-01 03:16:43 -07:00
parent ea81b78da1
commit ceef226e26
2 changed files with 12 additions and 12 deletions

View File

@@ -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<HTMLButtonElement, MouseEvent>
@@ -351,9 +351,9 @@ const Panel = () => {
<entry.Icon ref={ref} size={64}></entry.Icon>
<figcaption>
<p>{entry.name}</p>
<small className="versioning">
{/* <small className="versioning">
U+{entry.codepoint.toString(16).toUpperCase()}
</small>
</small> */}
<small className="versioning">
available in v{entry.published_in.toFixed(1)}.0+
</small>
@@ -415,13 +415,13 @@ const Panel = () => {
onClick={handleCopyDataSVG}
/>
<ActionButton
{/* <ActionButton
label="Unicode"
title="Copy Unicode character (v2.1.0 or newer)"
active={copied === CopyType.UNICODE}
disabled={weight === IconStyle.DUOTONE}
onClick={handleCopyUnicode}
/>
/> */}
</>
)}
</div>