Added auth form. Added login and logout actions

This commit is contained in:
Paweł Malak
2021-11-10 13:53:28 +01:00
parent f5ed85427e
commit e4690d5d9c
11 changed files with 199 additions and 31 deletions

View File

@@ -0,0 +1,10 @@
import { ActionType } from '../action-types';
export interface LoginAction {
type: ActionType.login;
payload: string;
}
export interface LogoutAction {
type: ActionType.logout;
}

View File

@@ -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;