Skip to content

Commit 812ba9b

Browse files
authored
fix for Material UI menu color (#171)
1 parent 8d9c90d commit 812ba9b

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

dashboard/src/components/layout.tsx

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ import Toolbar from '@mui/material/Toolbar';
33
import Typography from '@mui/material/Typography';
44
import Box from '@mui/material/Box';
55
import React from 'react';
6-
import Link from 'next/link';
7-
import { Button } from '@mui/material';
86
import Container from '@mui/material/Container';
97
import Paper from '@mui/material/Paper';
108
import Avatar from '@mui/material/Avatar';
11-
import Tabs from '@mui/material/Tabs';
12-
import Tab from '@mui/material/Tab';
139
import { useQuery } from '@apollo/client';
1410
import { MeQuery } from '../types';
1511
import gql from 'graphql-tag';
@@ -32,21 +28,9 @@ export const Layout = ({ children }: LayoutProps) => {
3228
<>
3329
<AppBar position='relative'>
3430
<Toolbar>
35-
<Box mr={2}>
36-
<Link href={'/'} passHref>
37-
<Button color='inherit'>
38-
<Avatar alt='Remy Sharp' src={data?.me.avatarUrl} />
39-
&nbsp;&nbsp;&nbsp;
40-
<Typography variant='h6'>{data?.me.name}</Typography>
41-
</Button>
42-
</Link>
43-
</Box>
44-
45-
<Tabs value={0} aria-label='disabled tabs example'>
46-
<Link href={'/'} passHref>
47-
<Tab component={'a'} label='Queues' />
48-
</Link>
49-
</Tabs>
31+
<Avatar alt='Remy Sharp' src={data?.me.avatarUrl} />
32+
&nbsp;&nbsp;&nbsp;
33+
<Typography variant='h6'>{data?.me.name}</Typography>
5034
</Toolbar>
5135
</AppBar>
5236
<Container maxWidth={'lg'}>

0 commit comments

Comments
 (0)