feat: news
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user