forked from administration/panel
chore: add proper list for classifications
parent
c54c690fe4
commit
64671be091
|
@ -19,17 +19,15 @@ import {
|
||||||
} from "@/components/ui/popover";
|
} from "@/components/ui/popover";
|
||||||
import { TableCell, TableRow } from "@/components/ui/table";
|
import { TableCell, TableRow } from "@/components/ui/table";
|
||||||
import { toast } from "@/components/ui/use-toast";
|
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 { cn } from "@/lib/utils";
|
||||||
import { Check } from "lucide-react";
|
import { Check } from "lucide-react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
export const CLASSIFICATIONS = [
|
export const CLASSIFICATIONS = ["DISPOSABLE", "PRONE_TO_ABUSE", "ALIAS"];
|
||||||
"DISPOSABLE",
|
|
||||||
"GAYSEX",
|
|
||||||
"HOMOSEXUAL",
|
|
||||||
"FDGIUHDIFUIOFZH",
|
|
||||||
];
|
|
||||||
|
|
||||||
export default function EmailClassificationRow({
|
export default function EmailClassificationRow({
|
||||||
domain,
|
domain,
|
||||||
|
@ -117,7 +115,7 @@ export default function EmailClassificationRow({
|
||||||
toast({
|
toast({
|
||||||
title: "Classification deleted",
|
title: "Classification deleted",
|
||||||
});
|
});
|
||||||
} catch(e) {
|
} catch (e) {
|
||||||
toast({
|
toast({
|
||||||
title: "Failed to delete classification",
|
title: "Failed to delete classification",
|
||||||
description: String(e),
|
description: String(e),
|
||||||
|
|
Loading…
Reference in New Issue