File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export { LoadingSuccessButton } from './lib/components/buttons/LoadingSuccessBut
99export { ManageButton } from './lib/components/buttons/ManageButton' ;
1010export { SuccessButton } from './lib/components/buttons/SuccessButton' ;
1111export { ExcelButton } from './lib/components/buttons/ExcelButton' ;
12+ export { EditIconButton } from './lib/components/buttons/EditIconButton' ;
1213
1314// Export snackbar components
1415export { AppSnackBar } from './lib/components/snack-bar/AppSnackBar' ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { IconButton , Tooltip } from '@mui/material' ;
3+ import EditIcon from '@mui/icons-material/Edit' ;
4+
5+ interface EditIconButtonProps {
6+ tooltipTitle : string ;
7+ onClick : React . Dispatch < React . SetStateAction < boolean > > ;
8+ color : 'primary' ;
9+ }
10+
11+ export function EditIconButton ( props : EditIconButtonProps ) {
12+ return (
13+ < Tooltip title = { props . tooltipTitle } >
14+ < IconButton sx = { { pt : 0 , pb : 0 } } color = { props . color } onClick = { ( ) => props . onClick ( true ) } aria-label = { props . tooltipTitle } >
15+ < EditIcon />
16+ </ IconButton >
17+ </ Tooltip >
18+ ) ;
19+ }
You can’t perform that action at this time.
0 commit comments