Skip to content

Commit bad6bc3

Browse files
committed
feat: replace ArticleList with DashboardArticleList component and update article actions to include delete scheduling
1 parent 5d8196f commit bad6bc3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/app/dashboard/_components/ArticleList.tsx renamed to src/app/dashboard/_components/DashboardArticleList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { addDays, differenceInHours } from "date-fns";
3030
import { TrashIcon } from "lucide-react";
3131
import Link from "next/link";
3232

33-
const ArticleList = () => {
33+
const DashboardArticleList = () => {
3434
const { _t } = useTranslation();
3535
const queryClient = useQueryClient();
3636
const appConfirm = useAppConfirm();
@@ -299,4 +299,4 @@ const ArticleList = () => {
299299
);
300300
};
301301

302-
export default ArticleList;
302+
export default DashboardArticleList;

src/app/dashboard/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ArticleList from "./_components/ArticleList";
1+
import DashboardArticleList from "./_components/DashboardArticleList";
22
import MatrixReport from "./_components/MatrixReport";
33
// import ViewsChart from "./_components/ViewsChart";
44

@@ -7,7 +7,7 @@ const page = () => {
77
<>
88
{/* <ViewsChart /> */}
99
<MatrixReport />
10-
<ArticleList />
10+
<DashboardArticleList />
1111
</>
1212
);
1313
};

src/backend/services/article.actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ export async function myArticles(
502502
"handle",
503503
"created_at",
504504
"is_published",
505+
"delete_scheduled_at",
505506
"approved_at",
506507
],
507508
limit: input.limit,

0 commit comments

Comments
 (0)