mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-01-20 18:41:41 +01:00
Merge branch 'Mastermindzh:master' into master
This commit is contained in:
commit
ca0f973d07
@ -93,7 +93,7 @@ export const Navbar: FunctionComponent<{}> = () => {
|
|||||||
|
|
||||||
To add a value to the runtime config you have to take 2 steps:
|
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
|
```tsx
|
||||||
type RunTimeConfig = {
|
type RunTimeConfig = {
|
||||||
|
@ -2,7 +2,7 @@ import { DateTime } from "luxon";
|
|||||||
import { FunctionComponent } from "react";
|
import { FunctionComponent } from "react";
|
||||||
import { Trans, useTranslation } from "react-i18next";
|
import { Trans, useTranslation } from "react-i18next";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { Config } from "../../config";
|
import { Config } from "../config";
|
||||||
import "./Navbar.css";
|
import "./Navbar.css";
|
||||||
type Props = {};
|
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 {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
|
Loading…
Reference in New Issue
Block a user