auth + groups invite

This commit is contained in:
Виталий Лавшонок
2025-11-15 17:37:47 +03:00
parent ded41ba7f0
commit dfc2985209
16 changed files with 673 additions and 225 deletions

View File

@@ -33,8 +33,6 @@ export interface Submission {
sourceType: string;
}
export interface Mission {
id: number;
authorId: number;
@@ -124,8 +122,6 @@ interface ContestsState {
status: Status;
error?: string;
};
// 🆕 Добавляем updateContest и deleteContest
updateContest: {
contest: Contest;
status: Status;
@@ -176,7 +172,7 @@ const initialState: ContestsState = {
status: 'idle',
error: undefined,
},
fetchMySubmissions: {
fetchMySubmissions: {
submissions: [],
status: 'idle',
error: undefined,
@@ -262,7 +258,6 @@ export const fetchMySubmissions = createAsyncThunk(
},
);
// Все контесты
export const fetchContests = createAsyncThunk(
'contests/fetchAll',
@@ -435,8 +430,6 @@ const contestsSlice = createSlice({
state.fetchMySubmissions.error = action.payload;
});
// fetchContests
builder.addCase(fetchContests.pending, (state) => {
state.fetchContests.status = 'loading';