Error coding, rebuild server

This commit is contained in:
2024-01-22 10:47:53 +08:00
parent 9e34da0b57
commit 9143f438d8
4 changed files with 16 additions and 14 deletions

View File

@@ -109,9 +109,9 @@ export default function HomeLayout({
}
}}
>
<Stack align="center" spacing={0}>
<Stack align="center" spacing={2}>
<ActionIcon variant={"transparent"}>
{user.Profile === null ? <IconUserCircle color="white" /> : <Avatar radius={"xl"} size={20} src={RouterProfile.api_foto_profile + `${user.Profile.imagesId}`}/>}
{user.Profile === null ? <IconUserCircle color="white" /> : <Avatar radius={"xl"} size={30} src={RouterProfile.api_foto_profile + `${user.Profile.imagesId}`}/>}
</ActionIcon>
<Text fz={"xs"} c={"white"}>
Profile

View File

@@ -41,7 +41,9 @@ export default function KatalogView({
profile={profile}
userLoginId={userLoginId}
/>
{profile.User.id === userLoginId ? <User_Logout /> : ""}
<Stack my={"lg"} w={"100%"}>
{profile.User.id === userLoginId ? <User_Logout /> : ""}
</Stack>
</Stack>
</>
);

View File

@@ -12,13 +12,7 @@ import { IconArrowLeft } from "@tabler/icons-react";
import { useRouter } from "next/navigation";
import ComponentKatalog_HeaderTamplate from "../../component/header_tamplate";
export default function EditProfileLayout({
children,
profileId,
}: {
children: any;
profileId: any;
}) {
export default function EditProfileLayout({ children }: { children: any }) {
const router = useRouter();
return (
<>