Skip to content

Commit

Permalink
fix(web-client): Make row clickable in datagrid (#287)
Browse files Browse the repository at this point in the history
* feat(web-admin) add Datagrid to particpants

* fix(web-admin):make links clickable
  • Loading branch information
jzf21 authored Feb 9, 2024
1 parent a150943 commit f149873
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/web-admin/src/components/ProtectedRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect } from 'react';
import { useRouter } from 'next/router';
import { useAuth0 } from '@auth0/auth0-react';
import { Spinner, VStack, AbsoluteCenter } from '@chakra-ui/react';

export const ProtectedRoute = ({ children }) => {
const router = useRouter();
const { user, isAuthenticated, isLoading, loginWithRedirect } = useAuth0();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export default function Events() {
const handleClick1 = () => {
router.push(`/organizations/${orgId}/events/${eventId}/participants/new/upload-csv`);
};
const handleRowClick = (row) => {
router.push(`/organizations/${orgId}/events/${eventId}/participants/${row.id}`);
};

const handleRowClick = (row) => {
router.push(`/organizations/${orgId}/events/${eventId}/participants/${row.id}`);
Expand Down

0 comments on commit f149873

Please sign in to comment.