Skip to content

Commit

Permalink
fix some ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Dec 2, 2024
1 parent c84480c commit b385bb5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
28 changes: 16 additions & 12 deletions apps/web-remix/app/components/overlay/PageOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,22 @@ export function PageOverlay({
}, [containerId]);

if (!root) return null;
return createPortal(
<div
onClick={onClick}
className={cn(
'fixed top-0 left-0 right-0 bottom-0 bg-black/80 transition ease-[cubic-bezier(0.25, 1, 0.5, 1)]',
{
'opacity-0 pointer-events-none -z-[40]': !isShow,
'opacity-1 pointer-events-auto z-[40]': isShow,
},
className,
return (
<>
{createPortal(
<div
onClick={onClick}
className={cn(
'fixed top-0 left-0 right-0 bottom-0 bg-black/80 transition ease-[cubic-bezier(0.25, 1, 0.5, 1)]',
{
'opacity-0 pointer-events-none -z-[40]': !isShow,
'opacity-1 pointer-events-auto z-[40]': isShow,
},
className,
)}
/>,
root,
)}
/>,
root,
</>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ import type {
IBlockConfig,
IConfigConnection,
IInterfaceConfig,
IInterfaceConfigFormOutputProperty,
IInterfaceConfigProperty,
INode,
IPipeline,
} from '~/components/pages/pipelines/pipeline.types';
import { IInterfaceConfigFormProperty } from '~/components/pages/pipelines/pipeline.types';
import {
getEdges,
getNodes,
Expand Down Expand Up @@ -204,8 +206,12 @@ function validateInterfaceConfigs(
},
form: {
...interfaces.form,
inputs: interfaces.form.inputs.map(validate),
outputs: interfaces.form.outputs.map(validate),
inputs: interfaces.form.inputs.map(
validate,
) as IInterfaceConfigFormProperty[],
outputs: interfaces.form.outputs.map(
validate,
) as IInterfaceConfigFormOutputProperty[],
},
};
}
Expand Down

0 comments on commit b385bb5

Please sign in to comment.