Skip to content

Commit 7beae4d

Browse files
committed
added optional size prop and made variant prop optional of status button
1 parent 48f35e1 commit 7beae4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/components/ui/status-button.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ export const StatusButton = ({
1515
className,
1616
children,
1717
spinDelay,
18+
size,
1819
variant,
1920
...props
2021
}: React.ComponentProps<'button'> & {
2122
status: 'pending' | 'success' | 'error' | 'idle'
2223
message?: string | null
2324
spinDelay?: Parameters<typeof useSpinDelay>[1]
24-
variant: ButtonVariant['variant']
25+
size?: ButtonVariant['size']
26+
variant?: ButtonVariant['variant']
2527
}) => {
2628
const delayedPending = useSpinDelay(status === 'pending', {
2729
delay: 400,
@@ -64,6 +66,7 @@ export const StatusButton = ({
6466
<Button
6567
className={cn('flex justify-center gap-4', className)}
6668
variant={variant}
69+
size={size}
6770
{...props}
6871
>
6972
<div>{children}</div>

0 commit comments

Comments
 (0)