auth + groups invite
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user