-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(webapp): improve the text and refactor
- Loading branch information
1 parent
3354df6
commit 00070ea
Showing
7 changed files
with
75 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react' | ||
import { makeStyles } from '@mui/styles' | ||
import Tooltip from '@mui/material/Tooltip' | ||
import LaunchIcon from '@mui/icons-material/Launch' | ||
|
||
import styles from './styles' | ||
|
||
const useStyles = makeStyles(styles) | ||
|
||
const VisitSite = ({ title, url, placement = 'left' }) => { | ||
const classes = useStyles() | ||
|
||
return ( | ||
<Tooltip title={title} arrow placement={placement}> | ||
<a | ||
href={url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className={classes.link} | ||
> | ||
<LaunchIcon className={classes.clickableIcon} /> | ||
</a> | ||
</Tooltip> | ||
) | ||
} | ||
|
||
export default VisitSite |
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,14 @@ | ||
export default (theme) => ({ | ||
link: { | ||
width: '24px', | ||
height: '24px', | ||
marginLeft: theme.spacing(3), | ||
}, | ||
clickableIcon: { | ||
color: 'black', | ||
cursor: 'pointer', | ||
'&:hover': { | ||
color: '#1565c0', | ||
}, | ||
}, | ||
}) |
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