Skip to content

Commit 6ae051f

Browse files
committed
refactor: change ArticleList component to a regular function from async
1 parent a6f9d06 commit 6ae051f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/app/dashboard/_components/ArticleList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
import { Article } from "@/backend/models/domain-models";
43
import * as articleActions from "@/backend/services/article.actions";
54
import { useAppConfirm } from "@/components/app-confirm";
65
import { Button } from "@/components/ui/button";
@@ -31,7 +30,7 @@ import { addDays, differenceInHours } from "date-fns";
3130
import { TrashIcon } from "lucide-react";
3231
import Link from "next/link";
3332

34-
const ArticleList = async () => {
33+
const ArticleList = () => {
3534
const { _t } = useTranslation();
3635
const queryClient = useQueryClient();
3736
const appConfirm = useAppConfirm();

0 commit comments

Comments
 (0)