Skip to content

Commit

Permalink
Making appTheme optional in AppThemeProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshu-09 committed Jul 5, 2024
1 parent c787c2e commit 0b72fcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-dist/AppThemeProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export interface AppThemeContext {
export declare const ThemeContext: import('use-context-selector').Context<AppThemeContext | undefined>;
export default function AppThemeProvider({ children, appTheme, }: {
children: ReactNode;
appTheme: Record<AppThemeModeType, Theme>;
appTheme?: Record<AppThemeModeType, Theme>;
}): import("react/jsx-runtime").JSX.Element;
export {};
2 changes: 1 addition & 1 deletion src/components/AppThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function AppThemeProvider({
appTheme = defaultAppTheme,
}: {
children: ReactNode;
appTheme: Record<AppThemeModeType, Theme>;
appTheme?: Record<AppThemeModeType, Theme>;
}) {
const initialThemeMode =
(localStorage?.getItem("appThemeMode") as AppThemeModeType) || "light";
Expand Down

0 comments on commit 0b72fcd

Please sign in to comment.