Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
style(components): format code
Browse files Browse the repository at this point in the history
  ## what
  - format code

  ## how

  ## why

  ## where
  - ./src/app/problems/components/data-table/columns.tsx

  ## usage
  • Loading branch information
Clumsy-Coder committed Jan 1, 2024
1 parent edb3d75 commit 6fd9768
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions src/app/problems/components/data-table/columns.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
"use client"
"use client";

import { ColumnDef } from "@tanstack/react-table"
import { ArrowUpDown, MoreHorizontal } from "lucide-react"
import { ColumnDef } from "@tanstack/react-table";
import { ArrowUpDown, MoreHorizontal } from "lucide-react";
import Link from "next/link";

import { Button } from "@/components/ui/button"
import { Button } from "@/components/ui/button";
import { Problem } from "@/types";


export const columns: ColumnDef<Problem>[] = [
{
accessorKey: "num",
Expand All @@ -25,14 +24,11 @@ export const columns: ColumnDef<Problem>[] = [
cell: ({ row }) => {
return (
<div className="hover:underline">
<Link
href={`/problems/${row.getValue("num")}`}
className="p-3"
>
<Link href={`/problems/${row.getValue("num")}`} className="p-3">
{row.getValue("num")}
</Link>
</div>
)
);
},
},
{
Expand All @@ -51,15 +47,11 @@ export const columns: ColumnDef<Problem>[] = [
cell: ({ row }) => {
return (
<div className="hover:underline">
<Link
href={`/problems/${row.getValue("num")}`}
className="p-3"
>
<Link href={`/problems/${row.getValue("num")}`} className="p-3">
{row.getValue("title")}
</Link>
</div>
)
);
},
},
]

];

0 comments on commit 6fd9768

Please sign in to comment.