diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index aee1dbd33..cfc67bdb4 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -114,7 +114,7 @@ export default function ParameterComponent({ const logs = (data?.logs[outputName] ?? [])[0]; if (Array.isArray(logs) && logs.length > 1) { return logs.some( - (log) => log.type === "error" || log.type === "ValueError" + (log) => log.type === "error" || log.type === "ValueError", ); } else { return logs?.type === "error" || logs?.type === "ValueError"; @@ -156,7 +156,7 @@ export default function ParameterComponent({ handleUpdateValues, debouncedHandleUpdateValues, setNode, - setIsLoading + setIsLoading, ); const { handleNodeClass: handleNodeClassHook } = useHandleNodeClass( @@ -164,7 +164,7 @@ export default function ParameterComponent({ name, takeSnapshot, setNode, - updateNodeInternals + updateNodeInternals, ); const { handleRefreshButtonPress: handleRefreshButtonPressHook } = @@ -173,13 +173,13 @@ export default function ParameterComponent({ let disabled = edges.some( (edge) => - edge.targetHandle === scapedJSONStringfy(proxy ? { ...id, proxy } : id) + edge.targetHandle === scapedJSONStringfy(proxy ? { ...id, proxy } : id), ) ?? false; let disabledOutput = edges.some( (edge) => - edge.sourceHandle === scapedJSONStringfy(proxy ? { ...id, proxy } : id) + edge.sourceHandle === scapedJSONStringfy(proxy ? { ...id, proxy } : id), ) ?? false; const handleRefreshButtonPress = async (name, data) => { @@ -190,7 +190,7 @@ export default function ParameterComponent({ const handleOnNewValue = async ( newValue: string | string[] | boolean | Object[], - skipSnapshot: boolean | undefined = false + skipSnapshot: boolean | undefined = false, ): Promise => { handleOnNewValueHook(newValue, skipSnapshot); }; @@ -304,14 +304,14 @@ export default function ParameterComponent({ className={classNames( left ? "my-12 -ml-0.5" : "my-12 -mr-0.5", "h-3 w-3 rounded-full border-2 bg-background", - !showNode ? "mt-0" : "" + !showNode ? "mt-0" : "", )} style={{ borderColor: color ?? nodeColors.unknown, }} onClick={() => { setFilterEdge( - groupByFamily(myData, tooltipTitle!, left, nodes!) + groupByFamily(myData, tooltipTitle!, left, nodes!), ); }} > @@ -341,8 +341,7 @@ export default function ParameterComponent({
@@ -50,12 +49,7 @@ export default function TableOptions({ ) } > - diff --git a/src/frontend/src/components/ui/button.tsx b/src/frontend/src/components/ui/button.tsx index 76f2316a0..681b86e1b 100644 --- a/src/frontend/src/components/ui/button.tsx +++ b/src/frontend/src/components/ui/button.tsx @@ -20,7 +20,6 @@ const buttonVariants = cva( "border border-muted bg-muted text-secondary-foreground hover:bg-secondary-foreground/5", ghost: "hover:bg-accent hover:text-accent-foreground", link: "underline-offset-4 hover:underline text-primary", - none: "", }, size: { default: "h-10 py-2 px-4", @@ -28,14 +27,13 @@ const buttonVariants = cva( xs: "py-0.5 px-3 rounded-md", lg: "h-11 px-8 rounded-md", icon: "py-1 px-1 rounded-md", - none: "", }, }, defaultVariants: { variant: "default", size: "default", }, - } + }, ); export interface ButtonProps @@ -43,6 +41,7 @@ export interface ButtonProps VariantProps { asChild?: boolean; loading?: boolean; + unstyled?: boolean; } function toTitleCase(text: string) { @@ -57,6 +56,7 @@ const Button = React.forwardRef( { className, variant, + unstyled, size, loading, type, @@ -65,7 +65,7 @@ const Button = React.forwardRef( children, ...props }, - ref + ref, ) => { const Comp = asChild ? Slot : "button"; let newChildren = children; @@ -75,7 +75,9 @@ const Button = React.forwardRef( return ( <> ( ); - } + }, ); Button.displayName = "Button"; diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/buttonSendWrapper/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/buttonSendWrapper/index.tsx index 03d9455fa..81f42675c 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/buttonSendWrapper/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/buttonSendWrapper/index.tsx @@ -28,13 +28,12 @@ const ButtonSendWrapper = ({ noInput ? "bg-high-indigo text-background" : chatValue - ? "text-primary" - : "bg-chat-send text-background" + ? "text-primary" + : "bg-chat-send text-background", )} disabled={lockChat || saveLoading} onClick={(): void => send()} - variant="none" - size="none" + unstyled > diff --git a/src/frontend/src/modals/IOModal/components/chatView/fileComponent/components/downloadButton/downloadButton.tsx b/src/frontend/src/modals/IOModal/components/chatView/fileComponent/components/downloadButton/downloadButton.tsx index 7e706895e..1fdca0395 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/fileComponent/components/downloadButton/downloadButton.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/fileComponent/components/downloadButton/downloadButton.tsx @@ -14,7 +14,7 @@ export default function DownloadButton({ className={`absolute right-1 top-1 rounded-md bg-muted text-sm font-bold text-foreground`} > +
diff --git a/src/frontend/src/pages/MainPage/components/headerComponent/index.tsx b/src/frontend/src/pages/MainPage/components/headerComponent/index.tsx index 26999fbd5..cdd152229 100644 --- a/src/frontend/src/pages/MainPage/components/headerComponent/index.tsx +++ b/src/frontend/src/pages/MainPage/components/headerComponent/index.tsx @@ -52,8 +52,7 @@ const HeaderComponent = ({ } > diff --git a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx index edfe58a16..ac6a215be 100644 --- a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/index.tsx @@ -49,8 +49,7 @@ export default function ProfilePictureChooserComponent({ {profilePictures[folder].map((path, idx) => (