Skip to content

Commit

Permalink
refactor: invert the add/delete buttons position in the database tab
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Jul 4, 2024
1 parent 75108c6 commit 8fbcfb2
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,25 +152,24 @@ function DatabasesTabContent({
>
<Button
small
intent="success"
outlined
intent="danger"
tooltipProps={{ content: '', disabled: true }}
onClick={() => deleteHandler(data, index)}
onClick={() => addHandler(data, index + 1)}
>
<FaRegTrashAlt className={Classes.ICON} />
<FaPlus className={Classes.ICON} />
</Button>

<Button
small
intent="success"
outlined
intent="danger"
tooltipProps={{ content: '', disabled: true }}
onClick={() => addHandler(data, index + 1)}
onClick={() => deleteHandler(data, index)}
css={css`
margin: 0 3px;
`}
>
<FaPlus className={Classes.ICON} />
<FaRegTrashAlt className={Classes.ICON} />
</Button>

{isGoogleDocument(record.url) && (
Expand Down

0 comments on commit 8fbcfb2

Please sign in to comment.