Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxzirps committed Dec 17, 2024
1 parent 28a21cb commit c95854b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/ui/online-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
const OnlineStatus = () => {
const pingUrl = "http://127.0.0.1:8000/ping";
const [status, setStatus] = useState("loading");
const [error, setError] = useState<string | null>(null);
const [, setError] = useState<string | null>(null);

const checkStatus = async () => {
try {
Expand All @@ -23,7 +23,8 @@ const OnlineStatus = () => {
setStatus("offline");
setError("Failed to ping the server");
}
} catch (err: any) {
} catch (err) {
console.log(err);
setStatus("offline");
setError("Failed to reach the server");
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/song-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function SongSearch({ songs, addSong }: SongSearchProps) {
const [query, setQuery] = useState("");
const [isOpen, setIsOpen] = useState(false);
const [suggestions, setSuggestions] = useState<Song[]>([]);
const [loading, setLoading] = useState(false);
const [, setLoading] = useState(false);

const addedSongIds = songs.map((song) => song.id);

Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/ui/songs-table.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"use client";

import { ColumnDef } from "@tanstack/react-table";
import { Button } from "@/components/ui/button";
import { Song } from "@/app/page";
import { Check, Plus, Trash } from "lucide-react";
import { Trash } from "lucide-react";
import { ScrollArea } from "@/components/ui/scroll-area";

import { SongCard } from "./song-card";
Expand Down
1 change: 1 addition & 0 deletions frontend/src/hooks/useAttachmentStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const useAttachmentStyle = () => {

const data = await response.json();
setResult(data.attachment_style);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
setError(error.message || "An error occurred");
} finally {
Expand Down
7 changes: 0 additions & 7 deletions frontend/src/lib/calculate-attachment-style.ts

This file was deleted.

0 comments on commit c95854b

Please sign in to comment.