mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-03 18:05:18 +02:00
Created config global state. Reworked WeatherSettings and WeatherWidget to use new config state.
This commit is contained in:
parent
a5504e6e80
commit
d257fbf9a3
15 changed files with 214 additions and 88 deletions
6
client/src/interfaces/Forms.ts
Normal file
6
client/src/interfaces/Forms.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export interface WeatherForm {
|
||||
WEATHER_API_KEY: string;
|
||||
lat: number;
|
||||
long: number;
|
||||
isCelsius: number;
|
||||
}
|
|
@ -2,10 +2,12 @@ import { State as AppState } from '../store/reducers/app';
|
|||
import { State as ThemeState } from '../store/reducers/theme';
|
||||
import { State as BookmarkState } from '../store/reducers/bookmark';
|
||||
import { State as NotificationState } from '../store/reducers/notification';
|
||||
import { State as ConfigState } from '../store/reducers/config';
|
||||
|
||||
export interface GlobalState {
|
||||
theme: ThemeState;
|
||||
app: AppState;
|
||||
bookmark: BookmarkState;
|
||||
notification: NotificationState;
|
||||
config: ConfigState;
|
||||
}
|
|
@ -6,4 +6,5 @@ export * from './Weather';
|
|||
export * from './Bookmark';
|
||||
export * from './Category';
|
||||
export * from './Notification';
|
||||
export * from './Config';
|
||||
export * from './Config';
|
||||
export * from './Forms';
|
Loading…
Add table
Add a link
Reference in a new issue