update
This commit is contained in:
parent
7284b4d8e8
commit
8fce67a4dd
|
|
@ -349,7 +349,7 @@ export default function DetailContent() {
|
|||
<span>•</span>
|
||||
<span>
|
||||
<span>
|
||||
{new Date(articleDetail?.createdAt).toLocaleDateString(
|
||||
{new Date(articleDetail?.publishedAt).toLocaleDateString(
|
||||
"id-ID",
|
||||
{
|
||||
day: "numeric",
|
||||
|
|
|
|||
|
|
@ -1232,14 +1232,16 @@ export default function EditArticleForm(props: { isDetail: boolean }) {
|
|||
</Button>
|
||||
)} */}
|
||||
|
||||
<Button
|
||||
className="bg-red-500 text-white"
|
||||
variant="outline"
|
||||
type="button"
|
||||
onClick={doUnpublish}
|
||||
>
|
||||
Unpublish
|
||||
</Button>
|
||||
{detailData?.isPublish == true && (
|
||||
<Button
|
||||
className="bg-red-500 text-white"
|
||||
variant="outline"
|
||||
type="button"
|
||||
onClick={doUnpublish}
|
||||
>
|
||||
Unpublish
|
||||
</Button>
|
||||
)}
|
||||
|
||||
<Link href="/admin/article">
|
||||
<Button color="danger" variant="outline" type="button">
|
||||
|
|
|
|||
Loading…
Reference in New Issue