diff --git a/src/module/user/index.ts b/src/module/user/index.ts
index e898624..ee5ef0f 100644
--- a/src/module/user/index.ts
+++ b/src/module/user/index.ts
@@ -1,11 +1,9 @@
import { TypeUser } from './lib/type_user';
import createLogUser from "./log/fun/createLogUser";
-import ViewProfile from "./profile/view/view_profile";
import { funGetAllmember } from './member/lib/api_member';
import Profile from './profile/ui/profile';
import EditProfile from './profile/ui/edit_profile';
-export { ViewProfile };
export { createLogUser };
export type { TypeUser }
export { funGetAllmember }
diff --git a/src/module/user/profile/component/ui/header_edit_profile.tsx b/src/module/user/profile/component/ui/header_edit_profile.tsx
deleted file mode 100644
index c41217b..0000000
--- a/src/module/user/profile/component/ui/header_edit_profile.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-'use client'
-import { LayoutIconBack, LayoutNavbarHome, LayoutNavbarNew } from '@/module/_global';
-import { Box, Grid, Text } from '@mantine/core';
-import React from 'react';
-
-export default function HeaderEditProfile() {
- return (
-
- );
-}
-
diff --git a/src/module/user/profile/component/ui/ui_profile.tsx b/src/module/user/profile/component/ui/ui_profile.tsx
deleted file mode 100644
index a1f4397..0000000
--- a/src/module/user/profile/component/ui/ui_profile.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-'use client'
-import { Group, Text } from "@mantine/core";
-import { useRouter } from "next/navigation";
-
-
-export function InfoTitleProfile() {
- const router = useRouter()
- return (
-
- Informasi
- router.push('/profile/edit')}>Edit
-
- )
-}
\ No newline at end of file
diff --git a/src/module/user/profile/ui/profile.tsx b/src/module/user/profile/ui/profile.tsx
index 8154c70..2b07fe5 100644
--- a/src/module/user/profile/ui/profile.tsx
+++ b/src/module/user/profile/ui/profile.tsx
@@ -107,7 +107,7 @@ export default function Profile() {
No Telepon
- {isData?.phone}
+ +62{isData?.phone}
@@ -119,7 +119,7 @@ export default function Profile() {
- Gender
+ Jenis Kelamin
{isData?.gender === 'M' ? 'Laki-laki' : isData?.gender === 'F' ? 'Perempuan' : ''}
@@ -130,7 +130,7 @@ export default function Profile() {
}
setOpenModal(false)}
- description="Apakah Anda yakin ingin Keluar?"
+ description="Apakah Anda yakin ingin keluar?"
onYes={(val) => onLogout(val)} />
>
)
diff --git a/src/module/user/profile/view/view_profile.tsx b/src/module/user/profile/view/view_profile.tsx
deleted file mode 100644
index 5b8e22b..0000000
--- a/src/module/user/profile/view/view_profile.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-"use client"
-import { LayoutIconBack, LayoutNavbarHome, WARNA } from "@/module/_global";
-import { ActionIcon, Anchor, Box, Button, Flex, Group, Stack, Text } from "@mantine/core";
-import { BsInfo } from "react-icons/bs";
-import { HiUser } from "react-icons/hi2";
-import { RiIdCardFill } from "react-icons/ri";
-import { FaSquarePhone } from "react-icons/fa6";
-import { MdEmail } from "react-icons/md";
-import { InfoTitleProfile } from "../component/ui/ui_profile";
-import { IoMaleFemale } from "react-icons/io5";
-import toast from "react-hot-toast";
-import { LuLogOut } from "react-icons/lu";
-import LayoutModal from "@/module/_global/layout/layout_modal";
-import { useState } from "react";
-
-export default function ViewProfile() {
- const [openModal, setOpenModal] = useState(false);
-
- async function onLogout(val: boolean) {
- try {
- if (val) {
- await fetch('/api/auth/logout', {
- method: 'DELETE',
- });
- toast.success('Logout Success')
- window.location.href = '/';
- }
-
- setOpenModal(false)
-
- } catch (error) {
- console.error(error);
- }
- }
- return (
- <>
-
-
-
-
- { setOpenModal(true) }} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Info">
-
-
-
-
-
- Fibra Marcell
- Kepala Urusan Pengembangan
-
-
-
-
-
-
-
- NIK
-
- 513177782899
-
-
-
-
- NoTelepon
-
- +62038939293
-
-
-
-
- Email
-
- marcel@gmail.com
-
-
-
-
- Gender
-
- Laki-laki
-
-
-
-
- setOpenModal(false)}
- description="Apakah Anda yakin ingin Keluar?"
- onYes={(val) => onLogout(val)} />
- >
- )
-}
\ No newline at end of file