From 57a351aa38b7cdce0b27d2f3ddddd1228f685459 Mon Sep 17 00:00:00 2001 From: Fabian Bormann Date: Mon, 10 Apr 2023 13:30:51 +0200 Subject: [PATCH] fix: remove warnings and check npm build --- .github/workflows/build.yml | 2 +- src/App.tsx | 3 +-- src/components/Footer.tsx | 9 +-------- src/pages/Dashboard.tsx | 2 -- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c16ecb..111a564 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,5 +28,5 @@ jobs: - name: 🔨 Build application uses: samuelmeuli/action-electron-builder@v1 with: - github_token: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_TOKEN }} release: ${{ startsWith(github.ref, 'refs/tags/v') }} diff --git a/src/App.tsx b/src/App.tsx index 3c44b11..d9d947d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { HashRouter as Router, Routes, Route } from 'react-router-dom'; import { Dashboard } from './pages'; -import { styled, useTheme } from '@mui/material/styles'; +import { styled } from '@mui/material/styles'; import { Footer } from './components'; import Toolbar from '@mui/material/Toolbar'; import MuiAppBar, { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar'; @@ -42,7 +42,6 @@ const AppBar = styled(MuiAppBar, { })); const App = () => { - const theme = useTheme(); return (
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 5769c29..7843a90 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,17 +1,10 @@ import React from 'react'; -import { - createSvgIcon, - Grid, - IconButton, - Typography, - useTheme, -} from '@mui/material'; +import { createSvgIcon, Grid, IconButton, Typography } from '@mui/material'; import FavoriteIcon from '@mui/icons-material/Favorite'; import EmailIcon from '@mui/icons-material/Email'; import GitHubIcon from '@mui/icons-material/GitHub'; const Footer = () => { - const theme = useTheme(); const DiscordIcon = createSvgIcon( { - const theme = useTheme(); const [snackbarOpen, setSnackbarOpen] = useState(false); const [snackbarType, setSnackbarType] = useState('success'); const [snackbarMessage, setSnackbarMessage] = useState('');