mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
* fix: resolve error with redirects - fixes #2529 * fix: apply validations to username for oidc * fix: converted components to function components * fix: snapshots
29 lines
652 B
TypeScript
29 lines
652 B
TypeScript
import React, { FunctionComponent } from "react";
|
|
import ReactDOM from "react-dom";
|
|
|
|
import { createManaged } from "coral-framework/lib/bootstrap";
|
|
|
|
import App from "./App";
|
|
import { initLocalState } from "./local";
|
|
import localesData from "./locales";
|
|
|
|
// Import css variables.
|
|
import "coral-ui/theme/variables.css";
|
|
|
|
async function main() {
|
|
const ManagedCoralContextProvider = await createManaged({
|
|
initLocalState,
|
|
localesData,
|
|
});
|
|
|
|
const Index: FunctionComponent = () => (
|
|
<ManagedCoralContextProvider>
|
|
<App />
|
|
</ManagedCoralContextProvider>
|
|
);
|
|
|
|
ReactDOM.render(<Index />, document.getElementById("app"));
|
|
}
|
|
|
|
main();
|