feat: news

This commit is contained in:
Ivan Rezchikov
2026-06-20 18:30:39 +03:00
parent 674fd11aa9
commit 95fd6ae716
19 changed files with 886 additions and 159 deletions
+6 -5
View File
@@ -41,9 +41,10 @@ export default function DraftsDialog({ drafts }: { drafts: Draft[]}) {
<DialogTitle>Drafts</DialogTitle>
<DialogDescription>Here are drafts of your pages</DialogDescription>
</DialogHeader>
<div className="flex flex-col items-center gap-2">
{drafts.length > 0 ? (
drafts.map((draft) => (
<div className="flex flex-col items-center gap-2">
{drafts.map((draft) => (
<div className="w-full flex flex-row items-center justify-between" key={draft.id}>
<h3 className="w-64 hover:underline underline-offset-8 decoration-2 duration-200 cursor-pointer truncate">
{draft.title}
@@ -57,11 +58,11 @@ export default function DraftsDialog({ drafts }: { drafts: Draft[]}) {
</Button>
</div>
</div>
))
))}
</div>
) : (
<h3>There are no drafts yet...</h3>
<h4>There are no drafts yet...</h4>
)}
</div>
</DialogContent>
</Dialog>
)