Update group URLs to use slugs

This commit is contained in:
Alex Gleason
2023-04-17 15:42:08 -04:00
parent 1bce61182c
commit f2d5b2eaef
12 changed files with 27 additions and 21 deletions

View File

@ -25,7 +25,7 @@ const GroupGridItem = forwardRef((props: IGroup, ref: React.ForwardedRef<HTMLDiv
width,
}}
>
<Link to={`/groups/${group.id}`}>
<Link to={`/group/${group.slug}`}>
<Stack
className='aspect-h-7 aspect-w-10 h-full w-full overflow-hidden rounded-lg'
ref={ref}

View File

@ -21,7 +21,7 @@ const GroupListItem = (props: IGroup) => {
alignItems='center'
justifyContent='between'
>
<Link key={group.id} to={`/groups/${group.id}`}>
<Link key={group.id} to={`/group/${group.slug}`}>
<HStack alignItems='center' space={2}>
<GroupAvatar
group={group}