This is the react base app :)
Learn - + React , - + Redux , - + Redux Toolkit , and - + React Redux diff --git a/src/infrastructure/config/config.ts b/src/infrastructure/config/config.ts index d7b5046..f0faf1f 100644 --- a/src/infrastructure/config/config.ts +++ b/src/infrastructure/config/config.ts @@ -1,4 +1,5 @@ import deepmerge from "deepmerge"; +import { RunTimeConfig } from "./RunTimeConfig"; /** * gets and merges both the regular config and the override config from the window @@ -12,4 +13,4 @@ export const mergeConfigs = () => { mergeConfigs(); -export const Config = window.mergedConfig; +export const Config: RunTimeConfig = window.mergedConfig; diff --git a/src/infrastructure/navbar/Navbar.tsx b/src/infrastructure/navbar/Navbar.tsx index 5e6f1c7..dff7bd9 100644 --- a/src/infrastructure/navbar/Navbar.tsx +++ b/src/infrastructure/navbar/Navbar.tsx @@ -2,12 +2,14 @@ import { DateTime } from "luxon"; import { FunctionComponent } from "react"; import { Trans, useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; +import { ROUTE_KEYS } from "../../Routes"; import { Config } from "../config"; import "./Navbar.css"; type Props = {}; export const Navbar: FunctionComponent{translate("navBar.currentDate", { date: DateTime.now().toJSDate() })}