Skip to content

Commit

Permalink
fix: linting and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-Karia committed Sep 1, 2024
1 parent ff2e1d6 commit db88f22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/(tasks)/tasks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { useQuery } from "@tanstack/react-query";
import { getAllTasks } from "@/actions/task";
import Link from "next/link";
import { Checkbox } from "@/components/ui/checkbox";
import Task from "@/components/task";

export default function TasksPage() {
Expand All @@ -25,7 +24,7 @@ export default function TasksPage() {
<div className="flex flex-col bg-white">
{query.data.map(task => {
return (
<Link href={`/list/${task.listId}`}>
<Link href={`/list/${task.listId}`} key={task.id}>
<Task task={task} viewOnly />
</Link>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/list-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Button } from "@/components/ui/button";
import {
Form,
FormControl,
FormDescription,
FormField,
FormItem,
FormLabel,
Expand Down
2 changes: 1 addition & 1 deletion src/components/task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import DeleteTask from "./delete-task";

type Props = {
task: TaskType;
viewOnly: boolean;
viewOnly?: boolean;
};

export default function Task({ task, viewOnly = false }: Props) {
Expand Down

0 comments on commit db88f22

Please sign in to comment.