Skip to content

Commit

Permalink
fix button
Browse files Browse the repository at this point in the history
  • Loading branch information
felipe-rod123 committed Sep 27, 2023
1 parent 270a38e commit 96d0c47
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const UsersTable = ({ reload, tab, onReload }: UsersTableProps): ReactElement |
</GenericTableHeaderCell>
),

<GenericTableHeaderCell key='menu' w='x40' justifyItems='center' />,
<GenericTableHeaderCell key='menu' />,
],
[mediaQuery, setSort, sortBy, sortDirection, t, tab],
);
Expand Down
16 changes: 13 additions & 3 deletions apps/meteor/client/views/admin/users/UsersTable/UsersTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,30 @@ const UsersTableRow = ({ user, onClick, mediaQuery, refetchUsers, onReload, tab
>
<Box display='flex' flexDirection='row' alignContent='flex-end'>
{active ? t('User_first_log_in') : t('Activation')}
{active ? (
{/* {active ? (
<Button small secondary mi='x32'>
{t('Resend_welcome_email')}
</Button>
) : (
<Button small primary mi='x32'>
{t('Activate')}
</Button>
)}
)} */}
</Box>
</GenericTableCell>
)}

<GenericTableCell justifyContent='center'>
<GenericTableCell display='flex' flexDirection='row'>
{tab === 'pending' &&
(active ? (
<Button small secondary mie='x16'>
{t('Resend_welcome_email')}
</Button>
) : (
<Button small primary mie='x16'>
{t('Activate')}
</Button>
))}
<ActionsMenu user={user} refetchUsers={refetchUsers} onReload={onReload} tab={tab} />
</GenericTableCell>
</GenericTableRow>
Expand Down

0 comments on commit 96d0c47

Please sign in to comment.