Skip to content

Commit

Permalink
feature(sample): replace custom provider with style provider
Browse files Browse the repository at this point in the history
  • Loading branch information
aussedatlo committed Jan 30, 2024
1 parent f9c7769 commit 7320448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
6 changes: 3 additions & 3 deletions apps/sample/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* https://nextjs.org/docs/advanced-features/custom-app
*/

import { CustomThemeProvider } from "@/providers/theme";
import { GlobalStyle } from "@/styles/globalstyles";
import { StyleProvider } from "@ledgerhq/react-ui/index";
import type { AppProps } from "next/app";
import { Inter } from "next/font/google";

Expand All @@ -21,10 +21,10 @@ const inter = Inter({ subsets: ["latin"] });
export default function App({ Component, pageProps }: AppProps) {
return (
<main className={inter.className}>
<CustomThemeProvider>
<StyleProvider selectedPalette="dark">
<GlobalStyle />
<Component {...pageProps} />
</CustomThemeProvider>
</StyleProvider>
</main>
);
}
27 changes: 0 additions & 27 deletions apps/sample/src/providers/theme.tsx

This file was deleted.

0 comments on commit 7320448

Please sign in to comment.