-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace tapp class with page provider for v5
- Loading branch information
Heiner Pöpping
committed
Dec 5, 2024
1 parent
c82a694
commit 31aa378
Showing
13 changed files
with
41 additions
and
27 deletions.
There are no files selected for viewing
15 changes: 8 additions & 7 deletions
15
templates/api-v5/page-module-redux/src/components/AppWrapper.jsx
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
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
11 changes: 6 additions & 5 deletions
11
templates/api-v5/page-ts-module-redux/src/components/AppWrapper.tsx
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
11 changes: 6 additions & 5 deletions
11
templates/api-v5/page-ts-module/src/components/AppWrapper.tsx
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
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
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,11 +1,12 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { ChaynsProvider } from 'chayns-api'; | ||
import { PageProvider } from '@chayns-components/core'; | ||
import App from './components/App'; | ||
|
||
try { | ||
const root = createRoot(document.querySelector('#root')); | ||
root.render(<ChaynsProvider><App /></ChaynsProvider>); | ||
root.render(<ChaynsProvider><PageProvider><App /></PageProvider></ChaynsProvider>); | ||
} catch (e) { | ||
console.error('Encountered error at `ReactDOM.render`: ', e); | ||
} |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { ChaynsProvider } from 'chayns-api'; | ||
import { PageProvider } from '@chayns-components/core'; | ||
|
||
import App from './components/App'; | ||
|
||
try { | ||
const root = createRoot(document.querySelector('#root')); | ||
root.render(<ChaynsProvider><App /></ChaynsProvider>); | ||
root.render(<ChaynsProvider><PageProvider><App /></PageProvider></ChaynsProvider>); | ||
} catch (e) { | ||
console.error('Encountered error at `ReactDOM.render`: ', e); | ||
} |
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