diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx index 0d2748276..c3c8a0560 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsListCard.tsx @@ -8,10 +8,9 @@ import { SettingsAccountsListEmptyStateCard } from '@/settings/accounts/componen import { SettingsAccountsListSkeletonCard } from '@/settings/accounts/components/SettingsAccountsListSkeletonCard'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; -import { IconAt, IconPlus } from '@/ui/display/icon'; +import { IconPlus } from '@/ui/display/icon'; import { IconGoogle } from '@/ui/display/icon/components/IconGoogle'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; -import { LightIconButton } from '@/ui/input/button/components/LightIconButton'; import { Card } from '@/ui/layout/card/components/Card'; import { CardFooter } from '@/ui/layout/card/components/CardFooter'; @@ -19,16 +18,28 @@ import { SettingsAccountRow } from './SettingsAccountsRow'; const StyledFooter = styled(CardFooter)` align-items: center; - color: ${({ theme }) => theme.font.color.tertiary}; display: flex; - gap: ${({ theme }) => theme.spacing(2)}; - height: ${({ theme }) => theme.spacing(6)}; - padding: ${({ theme }) => theme.spacing(2)}; - padding-left: ${({ theme }) => theme.spacing(4)}; + padding: ${({ theme }) => theme.spacing(1)}; `; -const StyledIconButton = styled(LightIconButton)` - margin-left: auto; +const StyledButton = styled.button` + align-items: center; + background: ${({ theme }) => theme.background.primary}; + border: none; + border-radius: ${({ theme }) => theme.border.radius.sm}; + color: ${({ theme }) => theme.font.color.secondary}; + gap: ${({ theme }) => theme.spacing(2)}; + padding: 0 ${({ theme }) => theme.spacing(1)}; + padding-left: ${({ theme }) => theme.spacing(2)}; + cursor: pointer; + display: flex; + flex: 1 0 0; + height: ${({ theme }) => theme.spacing(8)}; + width: 100%; + + &:hover { + background: ${({ theme }) => theme.background.transparent.light}; + } `; type SettingsAccountsListCardProps< @@ -73,15 +84,14 @@ export const SettingsAccountsListCard = < ))} {hasFooter && ( - - Add account - navigate(getSettingsPagePath(SettingsPath.NewAccount)) } - /> + > + + Add account + )} diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx index 2c2660ddd..8029242ba 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsRow.tsx @@ -14,7 +14,7 @@ const StyledRow = styled(CardContent)` font-weight: ${({ theme }) => theme.font.weight.medium}; gap: ${({ theme }) => theme.spacing(2)}; padding: ${({ theme }) => theme.spacing(2)}; - padding-left: ${({ theme }) => theme.spacing(4)}; + padding-left: ${({ theme }) => theme.spacing(3)}; `; const StyledAccountHandle = styled.span`