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.
Browse files
Browse the repository at this point in the history
Moving the share view functionality to the tray
- Loading branch information
Showing
13 changed files
with
157 additions
and
266 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export * from './share_view'; | ||
|
||
import React from 'react'; | ||
import { Stack } from '@mui/joy'; | ||
import { Share as ShareViewIcon} from '@mui/icons-material'; | ||
|
||
// import the component that will allow the user to make model selections | ||
import { ShareView } from "./share_view.js"; | ||
|
||
// get an icon for the tray | ||
export const icon = <ShareViewIcon />; | ||
|
||
// create a title for this tray element | ||
export const title = 'Share your view'; | ||
|
||
/** | ||
* render the removal component | ||
* | ||
* @returns {JSX.Element} | ||
*/ | ||
export const trayContents = () => ( | ||
<Stack gap={ 2 } p={ 2 }> | ||
<ShareView /> | ||
</Stack> | ||
); |
File renamed without changes.
Oops, something went wrong.