Skip to content

Commit

Permalink
fix build and copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Feb 5, 2024
1 parent 7da4a35 commit b9fb0fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
11 changes: 3 additions & 8 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
/* eslint-disable no-console */
import React from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { initI18Next } from "./i18n/i18n";
import i18n from "i18next";
import { initCurrentDojo } from "./exam-tables";

await initI18Next();
initI18Next().catch(console.error);
document.title = i18n.t("app.title");

await initCurrentDojo();
initCurrentDojo().catch(console.error);

const root = createRoot(document.getElementById("root")!);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
2 changes: 1 addition & 1 deletion src/layout/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const DefaultLayout: React.FC<{ hideNavbar?: boolean; navbuttons?: ReactN
<Navbar.Toggle aria-controls="navbar-nav" />
<Navbar.Collapse id="navbar-nav">
<Form className={"form-inline ms-auto"}>{navbuttons}</Form>
<Navbar.Text className={"ms-auto"}>© Nils Knappmeier (2021)</Navbar.Text>
<Navbar.Text className={"ms-auto"}>© Nils Knappmeier (2024)</Navbar.Text>
</Navbar.Collapse>
</Container>
</Navbar>
Expand Down
15 changes: 0 additions & 15 deletions src/reportWebVitals.ts

This file was deleted.

0 comments on commit b9fb0fd

Please sign in to comment.