mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-07 04:53:12 +08:00
Created config global state. Reworked WeatherSettings and WeatherWidget to use new config state.
This commit is contained in:
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';
|
||||
Reference in New Issue
Block a user