(demo) upgrade demo app

Add the locale switching feature.
This commit is contained in:
Nathan Vasse
2023-03-06 16:32:02 +01:00
committed by NathanVss
parent 994d42578e
commit 2d80722a18
2 changed files with 29 additions and 12 deletions

View File

@@ -1,13 +1,10 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.scss";
import { CunninghamProvider } from "@openfun/cunningham-react";
import { App } from "./App";
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<CunninghamProvider>
<App />
</CunninghamProvider>
<App />
</React.StrictMode>
);