Skip to content

Commit

Permalink
♻️(frontend) improve CardCreateTeam component
Browse files Browse the repository at this point in the history
- remove link wrapping cancel button and
tabIndex=-1 to button
  • Loading branch information
daproclaima committed Sep 10, 2024
1 parent d6a19f4 commit 094579d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ export const CardCreateTeam = () => {
/>
</Box>
<Box $justify="space-between" $direction="row" $align="center">
<StyledLink href="/">
<Button color="secondary" tabIndex={-1}>
{t('Cancel')}
</Button>
</StyledLink>
<Button color="secondary" onClick={() => router.push('/')}>
{t('Cancel')}
</Button>

<Button
onClick={() => createTeam(teamName)}
disabled={!teamName || isPending}
Expand Down

0 comments on commit 094579d

Please sign in to comment.