diff --git a/app/[locale]/(public)/content-management/page.tsx b/app/[locale]/(public)/content-management/page.tsx index fe4c2f99..387cd808 100644 --- a/app/[locale]/(public)/content-management/page.tsx +++ b/app/[locale]/(public)/content-management/page.tsx @@ -85,16 +85,18 @@ const ContentManagement = (props: { type: string }) => {
avatar -

{profile?.fullname}

-

{profile?.username}

-

- Aktif Sejak - {`${new Date(profile?.createdAt).getDate()}/${new Date(profile?.createdAt).getMonth() + 1}/${new Date(profile?.createdAt).getFullYear()} ${new Date(profile?.createdAt).getHours()}:${new Date( - profile?.createdAt - ).getMinutes()}`} -

+
+

{profile?.fullname}

+

{profile?.username}

+

+ Aktif Sejak  + {`${new Date(profile?.createdAt).getDate()}/${new Date(profile?.createdAt).getMonth() + 1}/${new Date(profile?.createdAt).getFullYear()} ${new Date(profile?.createdAt).getHours()}:${new Date( + profile?.createdAt + ).getMinutes()}`} +

+
- + Pengaturan @@ -110,29 +112,29 @@ const ContentManagement = (props: { type: string }) => {
  • -

    Email

    -

    msabdayagra@gmail.com

    - {/*

    {profile?.email}

    */} +

    Email :

    + {/*

    msabdayagra@gmail.com

    */} +

    {profile?.email}

  • -

    No Handphone

    -

    0812-7561-7204

    - {/*

    {profile?.phoneNumber}

    */} +

    No Handphone :

    + {/*

    0812-7561-7204

    */} +

    {profile?.phoneNumber}

  • -

    Alamat

    -

    Jl. Besar Tembung no.12

    - {/*

    {profile?.address}

    */} +

    Alamat :

    + {/*

    Jl. Besar Tembung no.12

    */} +

    {profile?.address}

  • -

    Kategori

    -

    POLRI

    - {/*

    {profile?.institute?.categoryRole?.name}

    */} +

    Kategori :

    + {/*

    POLRI

    */} +

    {profile?.institute?.categoryRole?.name}

  • -

    Instansi/Perusahaan

    -

    Div Humas Polri

    - {/*

    {profile?.institute?.name}

    */} +

    Instansi/Perusahaan :

    + {/*

    Div Humas Polri

    */} +

    {profile?.institute?.name}

@@ -143,7 +145,7 @@ const ContentManagement = (props: { type: string }) => {
-

Galeri Div Humas

+

Galeri {profile?.institute?.name}

@@ -189,7 +191,7 @@ const ContentManagement = (props: { type: string }) => { {/* Kontent Kanan */}
-

Galeri Div Humas

+

Galeri {profile?.institute?.name}

@@ -228,9 +230,9 @@ const ContentManagement = (props: { type: string }) => {
{selectedTab == "video" ? ( - dummyContent?.length > 0 ? ( + profile?.length > 0 ? (
- {dummyContent?.map((video: any) => ( + {profile?.map((video: any) => ( @@ -257,9 +259,9 @@ const ContentManagement = (props: { type: string }) => {

) ) : selectedTab == "audio" ? ( - dummyContent?.length > 0 ? ( + profile?.length > 0 ? (
- {dummyContent?.map((audio: any) => ( + {profile?.map((audio: any) => ( {

) ) : selectedTab == "image" ? ( - dummyContent?.length > 0 ? ( + profile?.length > 0 ? (
- {dummyContent?.map((video: any) => ( - + {profile?.map((image: any) => ( + - - + +
- {formatDateToIndonesian(new Date(video?.createdAt))} {video?.timezone ? video?.timezone : "WIB"}| - {video?.clickCount}{" "} + {formatDateToIndonesian(new Date(image?.createdAt))} {image?.timezone ? image?.timezone : "WIB"}| + {image?.clickCount}{" "} { /> {" "}
-
{video?.title}
+
{image?.title}
@@ -332,9 +334,9 @@ const ContentManagement = (props: { type: string }) => { empty

) - ) : dummyContent.length > 0 ? ( + ) : profile.length > 0 ? (
- {dummyContent?.map((document: any) => ( + {profile?.map((document: any) => (
diff --git a/components/landing-page/navbar.tsx b/components/landing-page/navbar.tsx index 39029e31..b9a28c9e 100644 --- a/components/landing-page/navbar.tsx +++ b/components/landing-page/navbar.tsx @@ -56,7 +56,7 @@ const Navbar = () => { setLanguage(lang); setIsOpen(false); }; - + useEffect(() => { async function initState() { const response = await getInfoProfile(); @@ -68,7 +68,6 @@ const Navbar = () => { initState(); }, []); - return (
@@ -237,7 +236,7 @@ const Navbar = () => { - + Profile @@ -515,7 +514,37 @@ const Navbar = () => {
{fullName ? ( -

{fullName}

+ <> + + + avatar-profile + +

{fullName}

+

{`(${roleName})`}

+
+
+ + + + + Profile + + + + + + Kelola Konten + + + + + + Keluar + + + +
+ ) : ( <> @@ -526,12 +555,6 @@ const Navbar = () => { {" "} )} - - Masuk - - - Daftar -
)}