mirror of
https://github.com/hanzo-labs/wallet-2.git
synced 2026-10-30 18:54:05 +00:00
33 lines
634 B
JavaScript
33 lines
634 B
JavaScript
import React from 'react'
|
|
|
|
import MuiLink from '@material-ui/core/Link'
|
|
import Link from 'next/link'
|
|
|
|
import { withStyles } from '@material-ui/core/styles'
|
|
|
|
class MyLink extends React.Component {
|
|
render() {
|
|
const { style, className, classes, href, hrefAs, children, prefetch, ...props } = this.props
|
|
return pug`
|
|
Link(
|
|
href=href
|
|
as=hrefAs
|
|
prefetch
|
|
)
|
|
MuiLink(
|
|
...props
|
|
className=classes.root + ' ' + className
|
|
)
|
|
=children
|
|
`
|
|
}
|
|
}
|
|
|
|
let styles = theme => ({
|
|
root: {
|
|
cursor: 'pointer',
|
|
},
|
|
})
|
|
|
|
export default withStyles(styles)(MyLink)
|