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 12, 2024
1 parent 840b553 commit 7464b90
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from 'react';
import { useTranslation } from 'react-i18next';

import IconGroup from '@/assets/icons/icon-group2.svg';
import { Box, Card, StyledLink, Text } from '@/components';
import { Box, Card, Text } from '@/components';
import { useCunninghamTheme } from '@/cunningham';

import { useCreateTeam } from '../api';
Expand Down 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 7464b90

Please sign in to comment.