This commit is contained in:
AykutSarac 2024-11-13 23:41:57 +03:00
parent ca83ddab3b
commit f85e32b9c5
No known key found for this signature in database

View File

@ -13,6 +13,7 @@ import useFile from "src/store/useFile";
export const SchemaModal = ({ opened, onClose }: ModalProps) => {
const setContents = useFile(state => state.setContents);
const setJsonSchema = useFile(state => state.setJsonSchema);
const darkmodeEnabled = useConfig(state => (state.darkmodeEnabled ? "vs-dark" : "light"));
const [schema, setSchema] = React.useState(
JSON.stringify(
{
@ -32,7 +33,6 @@ export const SchemaModal = ({ opened, onClose }: ModalProps) => {
2
)
);
const darkmodeEnabled = useConfig(state => (state.darkmodeEnabled ? "vs-dark" : "light"));
const onApply = () => {
try {