mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-16 10:06:42 +03:00
Cleanup
This commit is contained in:
parent
4bca29fbe7
commit
8c318699c4
@ -17,7 +17,6 @@ import { useNavigate } from "react-router-dom";
|
||||
import { getTranslatedLabel } from "@/utils/i18n";
|
||||
|
||||
type ClassificationCardProps = {
|
||||
className?: string;
|
||||
imgClassName?: string;
|
||||
data: ClassificationItemData;
|
||||
threshold?: ClassificationThreshold;
|
||||
@ -28,7 +27,6 @@ type ClassificationCardProps = {
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
export function ClassificationCard({
|
||||
className,
|
||||
imgClassName,
|
||||
data,
|
||||
threshold,
|
||||
|
||||
@ -27,7 +27,7 @@ export default function ClassificationModelWizardDialog({
|
||||
const { t } = useTranslation(["views/classificationModel"]);
|
||||
|
||||
// step management
|
||||
const [currentStep, setCurrentStep] = useState(0);
|
||||
const [currentStep, _] = useState(0);
|
||||
|
||||
return (
|
||||
<Dialog
|
||||
|
||||
@ -940,7 +940,6 @@ function FaceGrid({
|
||||
>
|
||||
{sortedFaces.map((image: string) => (
|
||||
<ClassificationCard
|
||||
className="gap-2 rounded-lg bg-card p-2"
|
||||
key={image}
|
||||
data={{
|
||||
name: pageToggle,
|
||||
|
||||
@ -637,7 +637,6 @@ function DatasetGrid({
|
||||
{classData.map((image) => (
|
||||
<ClassificationCard
|
||||
key={image}
|
||||
className="w-60 gap-4 rounded-lg bg-card p-2"
|
||||
imgClassName="size-auto"
|
||||
data={{
|
||||
filename: image,
|
||||
@ -799,7 +798,6 @@ function StateTrainGrid({
|
||||
{trainData?.map((data) => (
|
||||
<ClassificationCard
|
||||
key={data.filename}
|
||||
className="w-60 gap-2 rounded-lg bg-card p-2"
|
||||
imgClassName="size-auto"
|
||||
data={data}
|
||||
threshold={threshold}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user