refactor: move workflow to /workflow

This commit is contained in:
BennyKok
2023-12-14 22:50:28 +08:00
parent 7e05fae7b3
commit c419e10827
6 changed files with 33 additions and 24 deletions
+4 -5
View File
@@ -9,7 +9,6 @@ import {
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Input } from "@/components/ui/input";
@@ -85,7 +84,7 @@ export const columns: ColumnDef<Payment>[] = [
},
cell: ({ row }) => {
return (
<a className="hover:underline" href={`/${row.original.id}`}>
<a className="hover:underline" href={`/workflow/${row.original.id}`}>
{row.getValue("email")}
</a>
);
@@ -167,7 +166,7 @@ export const columns: ColumnDef<Payment>[] = [
export function WorkflowList({ data }: { data: Payment[] }) {
const [sorting, setSorting] = React.useState<SortingState>([]);
const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
[],
[]
);
const [columnVisibility, setColumnVisibility] =
React.useState<VisibilityState>({});
@@ -242,7 +241,7 @@ export function WorkflowList({ data }: { data: Payment[] }) {
? null
: flexRender(
header.column.columnDef.header,
header.getContext(),
header.getContext()
)}
</TableHead>
);
@@ -261,7 +260,7 @@ export function WorkflowList({ data }: { data: Payment[] }) {
<TableCell key={cell.id}>
{flexRender(
cell.column.columnDef.cell,
cell.getContext(),
cell.getContext()
)}
</TableCell>
))}