UNPKG

@activelylearn/material-ui

Version:

Material-UI's workspace package

64 lines (58 loc) 1.77 kB
import 'isomorphic-fetch'; import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableRow from '@material-ui/core/TableRow'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import Link from 'docs/src/modules/components/Link'; const styles = { root: { width: '100%', }, }; function LatestVersion(props) { const { classes } = props; return ( <Paper className={classes.root}> <Table> <TableBody> <TableRow> <TableCell padding="dense"> <Typography>master branch</Typography> </TableCell> <TableCell padding="dense"> <Typography component={props2 => ( <Link {...props2} variant="secondary" href="https://material-ui.netlify.com/" /> )} > Documentation </Typography> </TableCell> <TableCell padding="dense"> <Typography component={props2 => ( <Link {...props2} variant="secondary" href="https://github.com/mui-org/material-ui" /> )} > Source code </Typography> </TableCell> </TableRow> </TableBody> </Table> </Paper> ); } LatestVersion.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(LatestVersion);