1
0
Fork 0

chore: add proper list for classifications

user-stream
Paul Makles 2023-09-03 12:21:19 +01:00
parent c54c690fe4
commit 64671be091
No known key found for this signature in database
GPG Key ID: 5059F398521BB0F6
1 changed files with 6 additions and 8 deletions

View File

@ -19,17 +19,15 @@ import {
} from "@/components/ui/popover";
import { TableCell, TableRow } from "@/components/ui/table";
import { toast } from "@/components/ui/use-toast";
import { deleteEmailClassification, updateEmailClassification } from "@/lib/actions";
import {
deleteEmailClassification,
updateEmailClassification,
} from "@/lib/actions";
import { cn } from "@/lib/utils";
import { Check } from "lucide-react";
import { useState } from "react";
export const CLASSIFICATIONS = [
"DISPOSABLE",
"GAYSEX",
"HOMOSEXUAL",
"FDGIUHDIFUIOFZH",
];
export const CLASSIFICATIONS = ["DISPOSABLE", "PRONE_TO_ABUSE", "ALIAS"];
export default function EmailClassificationRow({
domain,
@ -117,7 +115,7 @@ export default function EmailClassificationRow({
toast({
title: "Classification deleted",
});
} catch(e) {
} catch (e) {
toast({
title: "Failed to delete classification",
description: String(e),