Skip to content

Commit

Permalink
fix: remove warnings and check npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbormann committed Apr 10, 2023
1 parent f2edbf3 commit 57a351a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
3 changes: 1 addition & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -42,7 +42,6 @@ const AppBar = styled(MuiAppBar, {
}));

const App = () => {
const theme = useTheme();
return (
<Router>
<div style={{ position: 'relative', width: '100%', height: '100%' }}>
Expand Down
9 changes: 1 addition & 8 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -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(
<svg
viewBox="0 0 71 55"
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ import {
InputAdornment,
InputBase,
Snackbar,
useTheme,
} from '@mui/material';
import FolderOpenIcon from '@mui/icons-material/FolderOpen';
import reactStringReplace from 'react-string-replace';
import { Box } from '@mui/system';

const Dashboard = () => {
const theme = useTheme();
const [snackbarOpen, setSnackbarOpen] = useState(false);
const [snackbarType, setSnackbarType] = useState<MessageType>('success');
const [snackbarMessage, setSnackbarMessage] = useState('');
Expand Down

0 comments on commit 57a351a

Please sign in to comment.