Fix build
This commit is contained in:
parent
12a697decd
commit
601f89352d
@ -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) {
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user