Skip to content

Commit

Permalink
remove mui/styled
Browse files Browse the repository at this point in the history
  • Loading branch information
GoliathLabs committed Dec 1, 2024
1 parent afc179f commit cac3de7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 170 deletions.
160 changes: 0 additions & 160 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@mui/icons-material": "^6.1.9",
"@mui/lab": "^6.0.0-beta.17",
"@mui/material": "^6.1.9",
"@mui/styles": "^6.1.9",
"common-tags": "^1.8.2",
"date-fns": "^4.1.0",
"google-protobuf": "^4.0.0-rc.2",
Expand Down
17 changes: 8 additions & 9 deletions website/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect } from 'react';
import makeStyles from '@mui/styles/makeStyles';
import styled from '@emotion/styled';
import { getCookie } from '../Cookies';
import { AppState } from '../AppState';
import { NavLink } from 'react-router-dom';
Expand All @@ -17,19 +17,18 @@ import LoginIcon from '@mui/icons-material/Login';
import DevicesIcon from '@mui/icons-material/Devices';
import { useMediaQuery } from '@mui/material';

const useStyles = makeStyles((theme) => ({
title: {
flexGrow: 1,
},
}));
// Stile mit `styled` definieren
const Title = styled(Typography)`
flex-grow: 1;
`;

export default function Navigation() {
const classes = useStyles();
const hasAuthCookie = !!getCookie('auth-session');

return (
<AppBar position="static">
<Toolbar>
<Typography variant="h6" className={classes.title}>
<Title variant="h6">
<Link to="/" color="inherit" component={NavLink}>
<VpnKey /> wg-access-server
</Link>
Expand All @@ -45,7 +44,7 @@ export default function Navigation() {
}}
/>
)}
</Typography>
</Title>

<DarkModeToggle />

Expand Down

0 comments on commit cac3de7

Please sign in to comment.