-
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.
Merge pull request #37 from mavka-org/main
minor fixes
- Loading branch information
Showing
4 changed files
with
34 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import MuiLink from '@material-ui/core/Link'; | ||
|
||
const useStyles = props => makeStyles( theme => ({ | ||
root: { | ||
} | ||
})); | ||
|
||
export function Link({ children, style, ...props }){ | ||
const classes = useStyles(props)(); | ||
const classNames = `${classes.root} ${props.className}`; | ||
return ( | ||
<MuiLink {...props} style={style} className={classNames}> | ||
{children} | ||
</MuiLink> | ||
); | ||
} | ||
|
||
export default Link; |
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,12 @@ | ||
import React from 'react'; | ||
|
||
import Link from '../../components/elements/Link'; | ||
import { Typography } from '@material-ui/core'; | ||
|
||
export default { | ||
title: 'Elements/Link', | ||
component: Link | ||
}; | ||
|
||
|
||
export const Default = () => <Typography><Link href='https://google.com' target='_blank'>This is a Default Link for style and external links/new tab.</Link></Typography> |
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