Skip to content

Commit

Permalink
refactor: PreferencesToolbar using react-science
Browse files Browse the repository at this point in the history
  • Loading branch information
wadjih-bencheikh18 committed Aug 23, 2023
1 parent 633eee4 commit 06bc728
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/components/roi/ROIEditPreference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { FaCheck, FaTimes } from 'react-icons/fa';
import {
Checkbox,
ColorPickerDropdown,
PanelPreferencesToolbar,
Table,
Toolbar,

Check failure on line 10 in src/components/roi/ROIEditPreference.tsx

View workflow job for this annotation

GitHub Actions / lint

'Toolbar' is defined but never used
ValueRenderers,
Expand Down Expand Up @@ -117,22 +118,7 @@ function ROIEditPreference() {

return (
<>
<Toolbar orientation="horizontal">
<Toolbar.Item
title="Save"
titleOrientation="horizontal"
onClick={handleSave}
>
<FaCheck color="green" />
</Toolbar.Item>
<Toolbar.Item
title="Cancel"
titleOrientation="horizontal"
onClick={handleCancel}
>
<FaTimes color="red" />
</Toolbar.Item>
</Toolbar>
<PanelPreferencesToolbar onClose={handleCancel} onSave={handleSave} />
<PaddedContent>
<EditGroup>
<RoiEditTitle>Shown columns</RoiEditTitle>
Expand Down

0 comments on commit 06bc728

Please sign in to comment.