generated from RENCI/react-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
definition for the remove all observations sidebar
- Loading branch information
1 parent
e561cb9
commit ae04250
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { Stack } from '@mui/joy'; | ||
import { ClearAll as RemoveObservationsIcon} from '@mui/icons-material'; | ||
|
||
// import the component that will do the observation removal from state | ||
import { RemoveObservations } from "./removeObservations"; | ||
|
||
// get an icon for the tray | ||
export const icon = <RemoveObservationsIcon />; | ||
|
||
// create a title for this tray element | ||
export const title = 'Remove observations'; | ||
|
||
/** | ||
* render the removal component | ||
* | ||
* @returns {JSX.Element} | ||
*/ | ||
export const trayContents = () => ( | ||
<Stack gap={ 2 } p={ 2 }> | ||
<RemoveObservations /> | ||
</Stack> | ||
); |