Fix build

This commit is contained in:
Tanishq Dubey 2024-09-10 14:11:52 -04:00
parent 12a697decd
commit 601f89352d
2 changed files with 4 additions and 4 deletions

View File

@ -12,9 +12,9 @@ import { generateYAML, generateJSON, generateXResources, generateTOML, generateI
const SharedTheme: React.FC = () => {
const params = useParams();
const [scheme, setScheme] = useState<ColorScheme | null>(null);
const [codeSample, setCodeSample] = useState<CodeSample>('javascript');
const [codeSample, ] = useState<CodeSample>('javascript');
const [outputFormat, setOutputFormat] = useState('yaml');
const [isDarkMode, setIsDarkMode] = useState(false);
const [, setIsDarkMode] = useState(false);
useEffect(() => {
if (params.id) {

View File

@ -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({