mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-18 04:59:23 +00:00
fix: build errors fix attempt
This commit is contained in:
@@ -73,10 +73,8 @@ export default function Page() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// @ts-expect-error react 19 beta error
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
const onJsonChange: EditorProps["onChange"] = value => setFormByJson(value ?? "");
|
const onJsonChange: EditorProps["onChange"] = value => setFormByJson(value ?? "");
|
||||||
// @ts-expect-error react 19 beta error
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
const onYamlChange: EditorProps["onChange"] = value => setFormByYaml(value ?? "");
|
const onYamlChange: EditorProps["onChange"] = value => setFormByYaml(value ?? "");
|
||||||
|
|
||||||
@@ -137,11 +135,9 @@ export default function Page() {
|
|||||||
</PageSection>
|
</PageSection>
|
||||||
<div className="flex flex-1 flex-col gap-x-4 gap-y-5 lg:flex-row">
|
<div className="flex flex-1 flex-col gap-x-4 gap-y-5 lg:flex-row">
|
||||||
<PageSection className="min-h-[200px] flex-1" title="Json" control={jsonControl}>
|
<PageSection className="min-h-[200px] flex-1" title="Json" control={jsonControl}>
|
||||||
{/* @ts-expect-error react 19 beta error */}
|
|
||||||
<Editor language="json" value={form.json} onChange={onJsonChange} />
|
<Editor language="json" value={form.json} onChange={onJsonChange} />
|
||||||
</PageSection>
|
</PageSection>
|
||||||
<PageSection className="min-h-[200px] flex-1" title="Yaml" control={yamlControl}>
|
<PageSection className="min-h-[200px] flex-1" title="Yaml" control={yamlControl}>
|
||||||
{/* @ts-expect-error react 19 beta error */}
|
|
||||||
<Editor language="yaml" value={form.yaml} onChange={onYamlChange} />
|
<Editor language="yaml" value={form.yaml} onChange={onYamlChange} />
|
||||||
</PageSection>
|
</PageSection>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -87,5 +87,11 @@
|
|||||||
"serve": "^14.2.1",
|
"serve": "^14.2.1",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "^5.4.5"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"@types/react": "npm:types-react@beta",
|
||||||
|
"@types/react-dom": "npm:types-react-dom@beta"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1716
pnpm-lock.yaml
generated
1716
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user