GroupLinkPreview: link to slug URL

This commit is contained in:
Alex Gleason 2023-04-18 10:00:18 -04:00
parent bf8efeee9e
commit 70c2c5c438
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -14,7 +14,7 @@ const GroupLinkPreview: React.FC<IGroupLinkPreview> = ({ card }) => {
const { group } = card;
if (!group) return null;
const navigateToGroup = () => history.push(`/groups/${group.id}`);
const navigateToGroup = () => history.push(`/group/${group.slug}`);
return (
<Stack className='cursor-default overflow-hidden rounded-lg border border-gray-300 text-center dark:border-gray-800'>