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 SharedTheme: React.FC = () => {
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
const [scheme, setScheme] = useState<ColorScheme | null>(null);
|
const [scheme, setScheme] = useState<ColorScheme | null>(null);
|
||||||
const [codeSample, setCodeSample] = useState<CodeSample>('javascript');
|
const [codeSample, ] = useState<CodeSample>('javascript');
|
||||||
const [outputFormat, setOutputFormat] = useState('yaml');
|
const [outputFormat, setOutputFormat] = useState('yaml');
|
||||||
const [isDarkMode, setIsDarkMode] = useState(false);
|
const [, setIsDarkMode] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (params.id) {
|
if (params.id) {
|
||||||
|
@ -332,8 +332,8 @@ function generateNoun(): string {
|
|||||||
import { Buffer } from 'buffer';
|
import { Buffer } from 'buffer';
|
||||||
|
|
||||||
export function encodeThemeForUrl(scheme: ColorScheme): string {
|
export function encodeThemeForUrl(scheme: ColorScheme): string {
|
||||||
const encodedColors = Object.entries(scheme.colors).flatMap(([group, colors]) =>
|
const encodedColors = Object.entries(scheme.colors).flatMap(([, colors]) =>
|
||||||
Object.entries(colors).map(([name, color]) => color.slice(1))
|
Object.entries(colors).map(([, color]) => color.slice(1))
|
||||||
).join('');
|
).join('');
|
||||||
|
|
||||||
const data = JSON.stringify({
|
const data = JSON.stringify({
|
||||||
|
Loading…
Reference in New Issue
Block a user