mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-03 01:45:17 +02:00
UI notification/alert system with global redux state
This commit is contained in:
parent
c145888aec
commit
4eaf9659d1
17 changed files with 279 additions and 10 deletions
|
@ -1,9 +1,11 @@
|
|||
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';
|
||||
|
||||
export interface GlobalState {
|
||||
theme: ThemeState;
|
||||
app: AppState;
|
||||
bookmark: BookmarkState;
|
||||
notification: NotificationState;
|
||||
}
|
8
client/src/interfaces/Notification.ts
Normal file
8
client/src/interfaces/Notification.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export interface NewNotification {
|
||||
title: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface Notification extends NewNotification {
|
||||
id: number;
|
||||
}
|
|
@ -4,4 +4,5 @@ export * from './GlobalState';
|
|||
export * from './Api';
|
||||
export * from './Weather';
|
||||
export * from './Bookmark';
|
||||
export * from './Category';
|
||||
export * from './Category';
|
||||
export * from './Notification';
|
Loading…
Add table
Add a link
Reference in a new issue