Topbar.js
847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import { Link as RouterLink } from 'react-router-dom';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/styles';
import { AppBar, Toolbar } from '@material-ui/core';
const useStyles = makeStyles(() => ({
root: {
boxShadow: 'none'
}
}));
const Topbar = props => {
const { className, ...rest } = props;
const classes = useStyles();
return (
<AppBar
{...rest}
className={clsx(classes.root, className)}
color="primary"
position="fixed"
>
<Toolbar>
<RouterLink to="/">
<img
alt="Logo"
src="/images/logos/logo--white.svg"
/>
</RouterLink>
</Toolbar>
</AppBar>
);
};
Topbar.propTypes = {
className: PropTypes.string
};
export default Topbar;