Skip to content

Commit 0a46afd

Browse files
committed
Add download demo button
1 parent fd789d0 commit 0a46afd

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/_common/AppHeader/AppHeaderDemoButtons.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ import { makeStyles } from '@material-ui/core/styles'
55
import Tooltip from '@material-ui/core/Tooltip'
66
import Button from '@material-ui/core/Button'
77
import IconCode from '@material-ui/icons/Code'
8-
import IconFavorite from '@material-ui/icons/Favorite'
98
import IconStar from '@material-ui/icons/Star'
10-
11-
// const SupportLink = React.forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => (
12-
// <Link innerRef={ref as any} {...props} />
13-
// ))
9+
import IconDownload from '@material-ui/icons/GetApp'
1410

1511
const AppHeaderDemoButtons = props => {
1612
const classes = useStyles(props)
@@ -29,6 +25,18 @@ const AppHeaderDemoButtons = props => {
2925
<span className={classes.demoName}>View on GitHub</span>
3026
</Button>
3127
</Tooltip>
28+
<Tooltip title="View on GitHub">
29+
<Button
30+
size="small"
31+
variant="outlined"
32+
color="primary"
33+
className={classes.button}
34+
href="https://github.com/modularcode/modular-material-admin-react/releases"
35+
>
36+
<IconDownload className={classes.demoIcon} />
37+
<span className={classes.demoName}>Download</span>
38+
</Button>
39+
</Tooltip>
3240
{/* <Tooltip title="Help me to keep the project active!">
3341
<Button
3442
component={Link}

0 commit comments

Comments
 (0)