mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2026-01-03 04:59:25 +00:00
fix: build errors fix attempt
This commit is contained in:
@@ -49,11 +49,9 @@ export default function Page() {
|
||||
</PageSection>
|
||||
<div className="flex flex-col gap-3">
|
||||
<PageSection title="Header" control={heaederControl}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<Editor height={180} language="json" value={header} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
<PageSection title="Payload" control={payloadControl}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<Editor height={180} language="json" value={payload} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
</div>
|
||||
|
||||
@@ -39,8 +39,6 @@ export default function Page() {
|
||||
|
||||
const clearInput = () => setInput("");
|
||||
|
||||
// @ts-expect-error react 19 beta error
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
const onJsonChange: EditorProps["onChange"] = value => setInput(value ?? "");
|
||||
|
||||
const indentationConfig = (
|
||||
@@ -89,11 +87,9 @@ export default function Page() {
|
||||
</PageSection>
|
||||
<div className="flex flex-1 flex-col gap-x-4 gap-y-5 lg:flex-row">
|
||||
<PageSection className="min-h-[200px] flex-1" title="Input" control={inputControl}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<Editor language="json" value={input} onChange={onJsonChange} />
|
||||
</PageSection>
|
||||
<PageSection className="min-h-[200px] flex-1" title="Output" control={outputControl}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<Editor language="json" value={output} options={{ readOnly: true }} />
|
||||
</PageSection>
|
||||
</div>
|
||||
|
||||
@@ -91,7 +91,6 @@ export default function Page() {
|
||||
>
|
||||
<Panel maxSize={HORIZONTAL_PANEL_MAX_SIZE}>
|
||||
<PageSection className="h-full" title="Old text" control={input1Control}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<Editor value={input1} onChange={setInput1} />
|
||||
</PageSection>
|
||||
</Panel>
|
||||
@@ -99,7 +98,6 @@ export default function Page() {
|
||||
|
||||
<Panel maxSize={HORIZONTAL_PANEL_MAX_SIZE}>
|
||||
<PageSection className="h-full" title="New text" control={input2Control}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<Editor value={input2} onChange={setInput2} />
|
||||
</PageSection>
|
||||
</Panel>
|
||||
@@ -108,14 +106,9 @@ export default function Page() {
|
||||
<PanelResizeHandle direction="horizontal" className={hiddenInFullHeightMode} />
|
||||
<Panel maxSize={diffPanelMaxSize}>
|
||||
<PageSection className="h-full" title="Difference" control={diffControl}>
|
||||
{/* @ts-expect-error react 19 beta error */}
|
||||
<DiffEditor
|
||||
// @ts-expect-error react 19 beta error
|
||||
original={input1}
|
||||
// @ts-expect-error react 19 beta error
|
||||
modified={input2}
|
||||
// @ts-expect-error react 19 beta error
|
||||
|
||||
options={{
|
||||
readOnly: true,
|
||||
renderSideBySide: !inlineMode,
|
||||
|
||||
Reference in New Issue
Block a user