Skip to content

Commit

Permalink
fix: fix types error
Browse files Browse the repository at this point in the history
  • Loading branch information
Skolaczk committed Nov 11, 2024
1 parent f1e162c commit c945df7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/theme-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
'use client';

import { ComponentProps } from 'react';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
import { type ThemeProviderProps } from 'next-themes/dist/types';

type ThemeProviderProps = ComponentProps<typeof NextThemesProvider>;

export const ThemeProvider = ({ children, ...props }: ThemeProviderProps) => {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import Stripe from 'stripe';
import { env } from '@/env.mjs';

export const stripeServer = new Stripe(env.STRIPE_SECRET_KEY, {
apiVersion: '2024-09-30.acacia',
apiVersion: '2024-10-28.acacia',
});

0 comments on commit c945df7

Please sign in to comment.