Moved config to infrastructure :)

This commit is contained in:
Rick van Lieshout 2022-07-25 11:20:14 +02:00
parent 33fe4249a2
commit 87e5d4067a
6 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ export const Navbar: FunctionComponent<{}> = () => {
To add a value to the runtime config you have to take 2 steps:
1. Add a type to the `RuntimeConfig` type in [src/infrastructure/config/RunTimeConfig.ts](./src/infrastructure/config/RunTimeConfig.ts)
1. Add a type to the `RuntimeConfig` type in [src/infrastructure/config/RunTimeConfig.ts](./src/config/RunTimeConfig.ts)
```tsx
type RunTimeConfig = {

View File

@ -2,7 +2,7 @@ import { DateTime } from "luxon";
import { FunctionComponent } from "react";
import { Trans, useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Config } from "../../config";
import { Config } from "../config";
import "./Navbar.css";
type Props = {};

View File

@ -1,4 +1,4 @@
import { RunTimeConfig } from "./../config/RunTimeConfig";
import { RunTimeConfig } from "../infrastructure/config/RunTimeConfig";
declare global {
interface Window {