Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Jan 10, 2025
1 parent 61dfa81 commit d666932
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 17 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Sitemap Viewer [<img alt="Sitemap Viewer logo" src="public/favicon.svg" height="90" align="right" />](https://view.sitemap.style/)

[![deploy](https://github.com/fileformat/view.sitemap.style/actions/workflows/gcr-deploy.yaml/badge.svg)](https://github.com/fileformat/view.sitemap.style/actions/workflows/gcr-deploy.yaml)

This is a graphical sitemap viewer for [Sitemap.Style](https://www.sitemap.style/).

## Running locally
Expand Down
2 changes: 0 additions & 2 deletions src/app/view.html/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { constants } from '@/lib/constants';
import { getFirst } from '@/lib/getFirst';
import { loadSitemap } from '@/lib/loadSitemap';
import { SitemapEntry, TreeItem } from '@/lib/types';
import { MdBugReport } from 'react-icons/md';


export default async function View({
searchParams,
Expand Down
5 changes: 2 additions & 3 deletions src/components/DebugButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client';
import * as React from 'react';
import Button from '@mui/material/Button';
import Avatar from '@mui/material/Avatar';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
Expand Down Expand Up @@ -50,15 +49,15 @@ function DebugDialog(props: DebugDialogProps) {

export default function DebugButton() {
const [open, setOpen] = React.useState(false);

/*
const handleClickOpen = () => {
setOpen(true);
};
const handleClose = (value: string) => {
setOpen(false);
};

*/
return (
<>
<MdBugReport onClick={() => setOpen(true)} size={32} />
Expand Down
7 changes: 0 additions & 7 deletions src/components/ModeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'
import * as React from 'react';
import Button from '@mui/material/Button';
import Avatar from '@mui/material/Avatar';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
Expand All @@ -10,9 +9,7 @@ import ListItemText from '@mui/material/ListItemText';
import DialogTitle from '@mui/material/DialogTitle';
import Dialog from '@mui/material/Dialog';
import { useColorScheme } from '@mui/material/styles';
import PersonIcon from '@mui/icons-material/Person';
import { blue } from '@mui/material/colors';
import { MdBugReport } from 'react-icons/md';
import { MdDarkMode, MdOutlinePhonelink, MdSunny } from "react-icons/md";
import { IconType } from 'react-icons';

Expand Down Expand Up @@ -78,10 +75,6 @@ export default function DebugButton() {
return null;
}

const handleClickOpen = () => {
setOpen(true);
};

const handleClose = (value: Mode | null) => {
setOpen(false);
if (value != null) {
Expand Down
1 change: 0 additions & 1 deletion src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Link from 'next/link';
import AppBar from '@mui/material/AppBar';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import ModeSwitch from './ModeSwitch';
import { MdLogout, MdMap } from 'react-icons/md';
import { Stack } from '@mui/material';
import DebugButton from './DebugButton';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ProTip() {
<Link href="https://www.sitemap.style/">Sitemap.Style</Link>
{' '} for how to integrate this into your website.
<a href="https://github.com/fileformat/view.sitemap.style">
<img src="https://www.vectorlogo.zone/logos/github/github-tile.svg" style={{height: '16pt', margin: '4pt', verticalAlign: 'middle'}} />
<img alt="github icon" src="https://www.vectorlogo.zone/logos/github/github-tile.svg" style={{height: '16pt', margin: '4pt', verticalAlign: 'middle'}} />
</a>
</Typography>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/SitemapTreeView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'
import * as React from 'react';
import Box from '@mui/material/Box';
import { TreeViewBaseItem } from '@mui/x-tree-view/models';
import { RichTreeView } from '@mui/x-tree-view/RichTreeView';
import Typography from '@mui/material/Typography';
Expand Down
2 changes: 0 additions & 2 deletions src/components/SortSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as React from 'react';
import Box from '@mui/material/Box';
import InputLabel from '@mui/material/InputLabel';
import FormControl from '@mui/material/FormControl';
import NativeSelect from '@mui/material/NativeSelect';
import Select from '@mui/material/Select';

export default function SortSelect() {
Expand Down

0 comments on commit d666932

Please sign in to comment.