fix linter complaints in unmodified files

This commit is contained in:
Josh Hawkins 2024-06-02 11:33:09 -05:00
parent e7600e30c7
commit bdd9a6e2a7
3 changed files with 12 additions and 7 deletions

View File

@ -2,6 +2,7 @@ import { ReviewSegment } from "@/types/review";
import { Button } from "../ui/button";
import { LuRefreshCcw } from "react-icons/lu";
import { MutableRefObject, useMemo } from "react";
import { cn } from "@/lib/utils";
type NewReviewDataProps = {
className: string;
@ -29,11 +30,12 @@ export default function NewReviewData({
<div className={className}>
<div className="pointer-events-auto mr-[65px] flex items-center justify-center md:mr-[115px]">
<Button
className={`${
className={cn(
hasUpdate
? "duration-500 animate-in slide-in-from-top"
: "invisible"
} mx-auto mt-5 bg-gray-400 text-center text-white`}
: "invisible",
"mx-auto mt-5 bg-gray-400 text-center text-white",
)}
onClick={() => {
pullLatestData();
if (contentRef.current) {

View File

@ -1,6 +1,7 @@
import { LuX } from "react-icons/lu";
import { Button } from "../ui/button";
import { FaCompactDisc } from "react-icons/fa";
import { cn } from "@/lib/utils";
type SaveExportOverlayProps = {
className: string;
@ -17,9 +18,11 @@ export default function SaveExportOverlay({
return (
<div className={className}>
<div
className={`pointer-events-auto flex items-center justify-center gap-2 rounded-lg px-2 ${
show ? "duration-500 animate-in slide-in-from-top" : "invisible"
} mx-auto mt-5 text-center`}
className={cn(
"pointer-events-auto flex items-center justify-center gap-2 rounded-lg px-2",
show ? "duration-500 animate-in slide-in-from-top" : "invisible",
"mx-auto mt-5 text-center",
)}
>
<Button
className="flex items-center gap-1"

View File

@ -445,7 +445,7 @@ export default function GeneralMetrics({
</Button>
)}
</div>
<div className=" mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2">
<div className="mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2">
{statsHistory.length != 0 ? (
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
<div className="mb-5">GPU Usage</div>