#Job admin

- Tampilan user done
- Tampilan admin done
git commit -m
This commit is contained in:
2024-02-28 16:22:45 +08:00
parent fb7e89fb44
commit 83d2b0a1c4
114 changed files with 3572 additions and 375 deletions

View File

@@ -82,7 +82,7 @@ export default function HomeLayout({
<Grid.Col
span={"auto"}
onClick={() => {
if (user.Profile === null) {
if (user?.Profile === null) {
ComponentGlobal_NotifikasiPeringatan("Lengkapi Profile");
} else {
// router.push(RouterProfile.katalog + `${user.Profile.id}`);
@@ -102,7 +102,7 @@ export default function HomeLayout({
<Grid.Col
span={"auto"}
onClick={() => {
if (user.Profile === null) {
if (user?.Profile === null) {
router.push(RouterProfile.create + `${user.id}`);
} else {
router.push(RouterProfile.katalog + `${user.Profile.id}`);
@@ -111,7 +111,7 @@ export default function HomeLayout({
>
<Stack align="center" spacing={2}>
<ActionIcon variant={"transparent"}>
{user.Profile === null ? (
{user?.Profile === null ? (
<IconUserCircle color="white" />
) : (
<Avatar
@@ -124,7 +124,7 @@ export default function HomeLayout({
}}
src={
RouterProfile.api_foto_profile +
`${user.Profile.imagesId}`
`${user?.Profile.imagesId}`
}
/>
)}