add contests

This commit is contained in:
Виталий Лавшонок
2025-12-05 23:42:18 +03:00
parent 358c7def78
commit fd34761745
36 changed files with 2518 additions and 710 deletions

View File

@@ -273,7 +273,7 @@ export const fetchParticipatingContests = createAsyncThunk(
{ rejectWithValue },
) => {
try {
const { page = 0, pageSize = 10 } = params;
const { page = 0, pageSize = 100 } = params;
const response = await axios.get<ContestsResponse>(
'/contests/participating',
{ params: { page, pageSize } },
@@ -315,7 +315,7 @@ export const fetchContests = createAsyncThunk(
{ rejectWithValue },
) => {
try {
const { page = 0, pageSize = 10, groupId } = params;
const { page = 0, pageSize = 100, groupId } = params;
const response = await axios.get<ContestsResponse>('/contests', {
params: { page, pageSize, groupId },
});
@@ -417,7 +417,7 @@ export const fetchRegisteredContests = createAsyncThunk(
{ rejectWithValue },
) => {
try {
const { page = 0, pageSize = 10 } = params;
const { page = 0, pageSize = 100 } = params;
const response = await axios.get<ContestsResponse>(
'/contests/registered',
{ params: { page, pageSize } },