diff --git a/client/src/App.tsx b/client/src/App.tsx index 74b21d375..9b4c5c1dd 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -50,7 +50,7 @@ function App() { return ( - + } /> } /> diff --git a/client/src/index.tsx b/client/src/index.tsx index f50012bba..776701f77 100644 --- a/client/src/index.tsx +++ b/client/src/index.tsx @@ -1,5 +1,4 @@ -import React from 'react' -import { render } from 'react-dom' +import { createRoot } from 'react-dom/client' import { Provider } from 'react-redux' import { BrowserRouter } from 'react-router-dom' import { PersistGate } from 'redux-persist/integration/react' @@ -11,18 +10,18 @@ import { KBar } from './utils/KBar' const { store, persistor } = Redux -render( - - - - - - - - - - - , +const container = document.getElementById('root') - document.getElementById('root') +// eslint-disable-next-line @typescript-eslint/no-non-null-assertion +const root = createRoot(container!) +root.render( + + + + + + + + + ) diff --git a/client/src/pages/dashboard/DashboardPage.tsx b/client/src/pages/dashboard/DashboardPage.tsx index 2d34093f3..ed62af51c 100644 --- a/client/src/pages/dashboard/DashboardPage.tsx +++ b/client/src/pages/dashboard/DashboardPage.tsx @@ -106,7 +106,7 @@ export const DashboardPage: React.FC = () => { ) : ( - null}> + null}> )} diff --git a/client/src/pages/onboarding/OnboardingContainer.tsx b/client/src/pages/onboarding/OnboardingContainer.tsx index 09dafb2ff..f5f65ffbd 100644 --- a/client/src/pages/onboarding/OnboardingContainer.tsx +++ b/client/src/pages/onboarding/OnboardingContainer.tsx @@ -249,7 +249,7 @@ export const OnboardingContainer: React.FC = ({ - {getComponentToRender(onboardingStep)} + {getComponentToRender(onboardingStep)} = ({ />
- {getImageToRender(onboardingStep)} + {getImageToRender(onboardingStep)}
{leaveModal && ( diff --git a/client/src/pages/onboarding/OnboardingPage.tsx b/client/src/pages/onboarding/OnboardingPage.tsx index 7f9752398..0857313a6 100644 --- a/client/src/pages/onboarding/OnboardingPage.tsx +++ b/client/src/pages/onboarding/OnboardingPage.tsx @@ -57,7 +57,7 @@ export const OnboardingPage: React.FC = () => { className="container flex flex-col items-center p-4" > - + {mounted && ( = ({ character }) => { return ( {character ? ( - + = ({
- + {!hidden && (