Skip to content

Commit

Permalink
add variants
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Mar 9, 2021
2 parents dc477a7 + da053d2 commit 93cae5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/components/GenericTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const GenericTable = ({
results,
setParams = () => { },
total,
pagination = true,
...props
}, ref) => {
const t = useTranslation();
Expand Down Expand Up @@ -69,7 +70,7 @@ const GenericTable = ({
</Table>
</ScrollableContentWrapper>
</Box>
<Pagination
{pagination && <Pagination
divider
current={current}
itemsPerPage={itemsPerPage}
Expand All @@ -78,7 +79,7 @@ const GenericTable = ({
count={total || 0}
onSetItemsPerPage={setItemsPerPage}
onSetCurrent={setCurrent}
/>
/>}
</>
}
</>;
Expand Down
2 changes: 2 additions & 0 deletions client/views/teams/TeamsMembers/RemoveUsersModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const RemoveUsersFirstStep: FC<RemoveUsersStepsParams> = ({
const t = useTranslation();

return <GenericModal
variant='warning'
icon='warning'
title={t('What would you like to do?')}
onClose={onClose}
Expand All @@ -51,6 +52,7 @@ const RemoveUsersSecondStep: FC<RemoveUsersStepsParams> = ({
const t = useTranslation();

return <GenericModal
variant='danger'
cancelText='Back'
confirmText='Remove'
icon='info'
Expand Down

0 comments on commit 93cae5e

Please sign in to comment.