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