Skip to content

Commit

Permalink
feat(dashboard): unify clerk primary button with dashboard design
Browse files Browse the repository at this point in the history
  • Loading branch information
ChmaraX committed Nov 12, 2024
1 parent 8e0d2de commit 96461dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/dashboard/src/context/clerk-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { buttonVariants } from '@/components/primitives/button';
import { cn } from '@/utils/ui';
import { CLERK_PUBLISHABLE_KEY } from '@/config';
import { ClerkProvider as _ClerkProvider } from '@clerk/clerk-react';
import { PropsWithChildren } from 'react';
Expand Down Expand Up @@ -57,6 +59,9 @@ export const ClerkProvider = (props: ClerkProviderProps) => {
},
},
},
elements: {
formButtonPrimary: cn(buttonVariants({ variant: 'primary' })),
},
}}
localization={CLERK_LOCALIZATION}
allowedRedirectOrigins={ALLOWED_REDIRECT_ORIGINS}
Expand Down

0 comments on commit 96461dc

Please sign in to comment.