Tailwind config and basic services
This commit is contained in:
parent
f1e90c4dd2
commit
be6467cd2c
41 changed files with 581 additions and 102 deletions
30
src/store/user/actions.ts
Normal file
30
src/store/user/actions.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import {
|
||||
IFetchLoggedUserResponse,
|
||||
IFetchUserResponse,
|
||||
IFetchUserCommunitiesResponse,
|
||||
} from "../../api/user";
|
||||
|
||||
enum UserActionTypes {
|
||||
FETCH_LOGGED_USER_ID_START = "FETCH_LOGGED_USER_ID_START",
|
||||
FETCH_LOGGED_USER_ID_FINISH = "FETCH_LOGGED_USER_ID_FINISH",
|
||||
FETCH_USER_START = "FETCH_USER_START",
|
||||
FETCH_USER_FINISH = "FETCH_USER_FINISH",
|
||||
FETCH_USER_COMMUNITIES_START = "FETCH_USER_COMMUNITIES_START",
|
||||
FETCH_USER_COMMUNITIES_FINISH = "FETCH_USER_COMMUNITIES_FINISH",
|
||||
}
|
||||
|
||||
type UserAction =
|
||||
| { type: UserActionTypes.FETCH_LOGGED_USER_ID_START }
|
||||
| {
|
||||
type: UserActionTypes.FETCH_LOGGED_USER_ID_FINISH;
|
||||
payload: IFetchLoggedUserResponse;
|
||||
}
|
||||
| { type: UserActionTypes.FETCH_USER_START; payload: string }
|
||||
| { type: UserActionTypes.FETCH_USER_FINISH; payload: IFetchUserResponse }
|
||||
| { type: UserActionTypes.FETCH_USER_COMMUNITIES_START; payload: string }
|
||||
| {
|
||||
type: UserActionTypes.FETCH_USER_COMMUNITIES_FINISH;
|
||||
payload: IFetchUserCommunitiesResponse;
|
||||
};
|
||||
|
||||
export { UserActionTypes, type UserAction };
|
||||
Loading…
Add table
Add a link
Reference in a new issue