-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] ux extraction annoyances (#810)
* feat: updated edit analysis page with toolbar * feat: added toolbar and fixed bug with study annotations row orderingh * fix: ignore unused vars * chore: up[date comments
- Loading branch information
Showing
12 changed files
with
276 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...neurosynth-frontend/src/pages/Study/components/EditStudyAnalysisPointsHotTableToolbar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Add, Delete, TableRows } from '@mui/icons-material'; | ||
import { Box, Button, ButtonGroup, Tooltip } from '@mui/material'; | ||
import React from 'react'; | ||
|
||
const EditStudyAnalysisPointsHotTableToolbar: React.FC<{ | ||
onAddRow: () => void; | ||
onAddRows: () => void; | ||
onDeleteRows: () => void; | ||
}> = React.memo(({ onAddRow, onAddRows, onDeleteRows }) => { | ||
return ( | ||
<Box sx={{ borderRadius: '8px', width: '100%' }}> | ||
<ButtonGroup orientation="vertical" sx={{ width: '40px' }}> | ||
<Tooltip title="Add row" placement="right"> | ||
<Button onClick={onAddRow} color="primary" sx={{ height: '40px' }}> | ||
<Add fontSize="small" /> | ||
</Button> | ||
</Tooltip> | ||
<Tooltip title="Add rows" placement="right"> | ||
<Button onClick={onAddRows} sx={{ height: '40px' }} color="primary"> | ||
<Add sx={{ fontSize: '18px' }} /> | ||
<TableRows sx={{ fontSize: '12px' }} /> | ||
</Button> | ||
</Tooltip> | ||
<Tooltip title="Delete row(s)" placement="right"> | ||
<Button onClick={onDeleteRows} sx={{ height: '40px' }} color="error"> | ||
<Delete sx={{ fontSize: '20px' }} /> | ||
</Button> | ||
</Tooltip> | ||
</ButtonGroup> | ||
</Box> | ||
); | ||
}); | ||
|
||
export default EditStudyAnalysisPointsHotTableToolbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.