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.
refactoring/moving/adding share functionality to a button group on th…
…e map surface.
- Loading branch information
1 parent
b9fe9f2
commit a433ecf
Showing
5 changed files
with
61 additions
and
8 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,24 @@ | ||
import React, { Fragment } from 'react'; | ||
import { IconButton } from '@mui/joy'; | ||
import ShareRoundedIcon from '@mui/icons-material/ShareRounded'; | ||
|
||
/** | ||
* renders the link builder to recreate the current view elsewhere | ||
* | ||
* @returns {JSX.Element} | ||
* @constructor | ||
*/ | ||
export const BuildLink = () => { | ||
// get the query string | ||
const createLink = () => { | ||
alert('A link has been created.'); | ||
}; | ||
|
||
return ( | ||
<Fragment> | ||
<IconButton sx={{ marginLeft: 2 }} onClick={ createLink }> | ||
<ShareRoundedIcon color={'primary'} /> | ||
</IconButton> | ||
</Fragment> | ||
); | ||
}; |
Empty file.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
export * from './share'; | ||
export * from './buildlink'; | ||
export * from './screenshot'; |
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