diff --git a/app/share/[id]/page.tsx b/app/share/[id]/page.tsx index 16d36b4..9de653b 100644 --- a/app/share/[id]/page.tsx +++ b/app/share/[id]/page.tsx @@ -12,9 +12,9 @@ import { generateYAML, generateJSON, generateXResources, generateTOML, generateI const SharedTheme: React.FC = () => { const params = useParams(); const [scheme, setScheme] = useState(null); - const [codeSample, setCodeSample] = useState('javascript'); + const [codeSample, ] = useState('javascript'); const [outputFormat, setOutputFormat] = useState('yaml'); - const [isDarkMode, setIsDarkMode] = useState(false); + const [, setIsDarkMode] = useState(false); useEffect(() => { if (params.id) { diff --git a/app/utils/colorSchemes.ts b/app/utils/colorSchemes.ts index b496c8b..e7bd0be 100644 --- a/app/utils/colorSchemes.ts +++ b/app/utils/colorSchemes.ts @@ -332,8 +332,8 @@ function generateNoun(): string { import { Buffer } from 'buffer'; export function encodeThemeForUrl(scheme: ColorScheme): string { - const encodedColors = Object.entries(scheme.colors).flatMap(([group, colors]) => - Object.entries(colors).map(([name, color]) => color.slice(1)) + const encodedColors = Object.entries(scheme.colors).flatMap(([, colors]) => + Object.entries(colors).map(([, color]) => color.slice(1)) ).join(''); const data = JSON.stringify({