mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-01-20 18:41:41 +01:00
Moved config to infrastructure :)
This commit is contained in:
parent
33fe4249a2
commit
87e5d4067a
@ -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 = {
|
||||
|
@ -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 = {};
|
||||
|
||||
|
2
src/types/globals.d.ts
vendored
2
src/types/globals.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { RunTimeConfig } from "./../config/RunTimeConfig";
|
||||
import { RunTimeConfig } from "../infrastructure/config/RunTimeConfig";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
Loading…
Reference in New Issue
Block a user