-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move to components to providers
- Loading branch information
1 parent
71c6209
commit 4b9d974
Showing
6 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
npx lint-staged | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { ReactNode } from 'react'; | ||
import GlobalStylesProvider from './GlobalStylesProvider/index.provider'; | ||
|
||
export default function AppProviders({ children }: { children: ReactNode }) { | ||
return <GlobalStylesProvider>{children}</GlobalStylesProvider>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { createRoot } from 'react-dom/client'; | ||
import App from './App.tsx'; | ||
import StyleProvider from '@assets/styles/StyleProvider'; | ||
import AppProviders from '@components/providers/index.tsx'; | ||
|
||
createRoot(document.getElementById('root')!).render( | ||
<StyleProvider> | ||
<AppProviders> | ||
<App /> | ||
</StyleProvider>, | ||
</AppProviders>, | ||
); |