mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-09 22:13:12 +08:00
Added auth form. Added login and logout actions
This commit is contained in:
10
client/src/store/actions/auth.ts
Normal file
10
client/src/store/actions/auth.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { ActionType } from '../action-types';
|
||||
|
||||
export interface LoginAction {
|
||||
type: ActionType.login;
|
||||
payload: string;
|
||||
}
|
||||
|
||||
export interface LogoutAction {
|
||||
type: ActionType.logout;
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
import { App } from '../../interfaces';
|
||||
|
||||
import { SetThemeAction } from './theme';
|
||||
|
||||
import {
|
||||
@@ -24,8 +26,6 @@ import {
|
||||
SortAppsAction,
|
||||
} from './app';
|
||||
|
||||
import { App } from '../../interfaces';
|
||||
|
||||
import {
|
||||
GetCategoriesAction,
|
||||
AddCategoryAction,
|
||||
@@ -39,6 +39,8 @@ import {
|
||||
UpdateBookmarkAction,
|
||||
} from './bookmark';
|
||||
|
||||
import { LoginAction, LogoutAction } from './auth';
|
||||
|
||||
export type Action =
|
||||
// Theme
|
||||
| SetThemeAction
|
||||
@@ -71,4 +73,7 @@ export type Action =
|
||||
// Bookmarks
|
||||
| AddBookmarkAction
|
||||
| DeleteBookmarkAction
|
||||
| UpdateBookmarkAction;
|
||||
| UpdateBookmarkAction
|
||||
// Auth
|
||||
| LoginAction
|
||||
| LogoutAction;
|
||||
|
||||
Reference in New Issue
Block a user