Merge pull request #1329 from kcoderhtml/patch-2

bug: switch edit link from a div to "a"
This commit is contained in:
Max Wofford 2024-08-21 18:43:18 +00:00 committed by GitHub
commit 7275d4e6c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,10 +77,10 @@ const CohortCard = ({
gap: '5px'
}}
>
<div
as="a"
<a
href={editLink}
sx={{
display: block,
color: 'white',
bg: '#09AFB4',
borderRadius: '10px',
@ -93,7 +93,7 @@ const CohortCard = ({
}}
>
<Icon glyph="edit" />{' '}
</div>
</a>
<div
onClick={e => {
modalRef.current?.showModal()