This commit is contained in:
Виталий Лавшонок
2025-11-07 19:04:45 +03:00
parent 93a5366fd5
commit 69655dda82
7 changed files with 334 additions and 178 deletions

View File

@@ -24,6 +24,7 @@ const Contest = () => {
const dispatch = useAppDispatch();
const contest = useAppSelector((state) => state.contests.fetchContestById.contest);
useEffect(() => {
dispatch(setMenuActivePage('contest'));
}, []);
@@ -33,17 +34,16 @@ const Contest = () => {
}, [contestIdNumber]);
return (
<div>
<PrimaryButton onClick={() => {navigate(`/contest/${contestIdNumber}/submissions`)}} text='Мои посылки' />
<div className='w-full h-full'>
<Routes>
<Route
path="submissions"
element={<Submissions contestId={contestIdNumber} />}
element={<Submissions contest={contest}/>}
/>
<Route
path="*"
element={<ContestMissions contest={contest} />}
element={<ContestMissions contest={contest}/>}
/>
</Routes>