Skip to content

Commit

Permalink
Merge branch 'staging' into #566/feat/e2e-tests-for-557
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelcrelia committed Apr 18, 2024
2 parents 97fc79c + 0126e71 commit 97db826
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/[lang]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default async function HomePage({ searchParams, params }: Props) {
initialTags={tags}
lang={params.lang}
/>

{isTrainerOrAdmin(session.user) && <SpeedDialMenu />}
<CourseList
lang={params.lang}
Expand Down
1 change: 1 addition & 0 deletions src/components/Buttons/Buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function CourseModalCloseButton({ lang }: CourseModalCloseButtonProps) {
const params = new URLSearchParams(searchParams);
params.delete('courseId');
router.replace(`${pathname}?${params}`);
router.refresh();
};

return (
Expand Down
1 change: 1 addition & 0 deletions src/components/CourseModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default function CourseModal({
const params = new URLSearchParams(searchParams);
params.delete('courseId');
router.replace(`${pathname}?${params}`);
router.refresh();
}
};

Expand Down

0 comments on commit 97db826

Please sign in to comment.