mirror of
				https://github.com/Mastermindzh/react-starter-kit.git
				synced 2025-11-04 02:38:47 +01:00 
			
		
		
		
	Merge branch 'Mastermindzh:master' into master
This commit is contained in:
		@@ -93,7 +93,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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user