diff --git a/apps/nextjs/app/api/dfda/[dfdaPath]/route.ts b/apps/nextjs/app/api/dfda/[dfdaPath]/route.ts index 61b871a8e..584a28425 100644 --- a/apps/nextjs/app/api/dfda/[dfdaPath]/route.ts +++ b/apps/nextjs/app/api/dfda/[dfdaPath]/route.ts @@ -16,7 +16,9 @@ export async function GET(req: Request, context: z.infer - className: string; - size: string; - variant: string; } export function MeasurementButton({ userVariable, ...props }: MeasurementButtonProps) { @@ -35,13 +32,10 @@ export function MeasurementButton({ userVariable, ...props }: MeasurementButtonP //router.refresh(); } - // Destructure `ref` and `size` out of props to avoid passing it to the Button component if not valid - const { ref, size, ...buttonProps } = props; - return ( <> - {isFormOpen && ( diff --git a/apps/nextjs/components/userVariable/user-variable-item.tsx b/apps/nextjs/components/userVariable/user-variable-item.tsx index 7a9aefb0b..aa654ebd5 100644 --- a/apps/nextjs/components/userVariable/user-variable-item.tsx +++ b/apps/nextjs/components/userVariable/user-variable-item.tsx @@ -48,12 +48,12 @@ export function UserVariableItem({ userVariable }: UserVariableItemProps) { variant="outline" size="icon" /> -{/* */} + />