Communities and channels

This commit is contained in:
Aslan 2026-01-07 21:01:01 -05:00
parent 79dbeb6b7a
commit 280158470a
34 changed files with 558 additions and 62 deletions

View file

@ -1,3 +1,4 @@
import { IFetchCommunityMember } from "../../api/community";
import {
IFetchLoggedUserResponse,
IFetchUserResponse,
@ -5,6 +6,7 @@ import {
} from "../../api/user";
enum UserActionTypes {
SET_USER = "SET_USER",
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",
@ -14,6 +16,10 @@ enum UserActionTypes {
}
type UserAction =
| {
type: UserActionTypes.SET_USER;
payload: IFetchCommunityMember;
}
| { type: UserActionTypes.FETCH_LOGGED_USER_ID_START }
| {
type: UserActionTypes.FETCH_LOGGED_USER_ID_FINISH;