- Layout katalog dan porto clear
# No isuue
This commit is contained in:
2024-04-20 00:19:28 +08:00
parent ed28b7d7b2
commit e062632de7
40 changed files with 526 additions and 94 deletions

View File

@@ -1,5 +1,6 @@
"use client";
import AppComponentGlobal_LayoutTamplate from "@/app_modules/component_global/component_layout_tamplate";
import ComponentGlobal_HeaderTamplate from "@/app_modules/component_global/header_tamplate";
import {
ActionIcon,
@@ -13,26 +14,14 @@ import { IconArrowLeft } from "@tabler/icons-react";
import { useRouter } from "next/navigation";
export default function ProfileLayout({ children }: { children: any }) {
const router = useRouter()
const router = useRouter();
return (
<>
<AppShell
header={
// <Header height={50} px={"sm"} sx={{borderBlockStyle: "none"}}>
// <Group position="apart" h={50}>
// <ActionIcon variant="transparent" onClick={() => router.push("/dev/home")}>
// <IconArrowLeft />
// </ActionIcon>
// <Text>Create Profile</Text>
// <ActionIcon variant="transparent"></ActionIcon>
// </Group>
// </Header>
<ComponentGlobal_HeaderTamplate title="Buat Profile"/>
}
<AppComponentGlobal_LayoutTamplate
header={<ComponentGlobal_HeaderTamplate title="Buat Profile" />}
>
{children}
</AppShell>
</AppComponentGlobal_LayoutTamplate>
</>
);
}

View File

@@ -157,9 +157,9 @@ export default function CreateProfile({ userId }: { userId: any }) {
const buffer = URL.createObjectURL(
new Blob([new Uint8Array(await files.arrayBuffer())])
);
if (files.size > 1000000) {
if (files.size > 2000000) {
ComponentGlobal_NotifikasiPeringatan(
"Maaf, Ukuran file terlalu besar, maximum 1mb",
"Maaf, Ukuran file terlalu besar, maximum 2mb",
3000
);
} else {

View File

@@ -11,16 +11,17 @@ import {
import { IconArrowLeft } from "@tabler/icons-react";
import { useRouter } from "next/navigation";
import ComponentKatalog_HeaderTamplate from "../../component/header_tamplate";
import AppComponentGlobal_LayoutTamplate from "@/app_modules/component_global/component_layout_tamplate";
export default function EditProfileLayout({ children }: { children: any }) {
const router = useRouter();
return (
<>
<AppShell
<AppComponentGlobal_LayoutTamplate
header={<ComponentKatalog_HeaderTamplate title="Edit Profile" />}
>
{children}
</AppShell>
</AppComponentGlobal_LayoutTamplate>
</>
);
}

View File

@@ -14,6 +14,7 @@ import {
import { useRouter } from "next/navigation";
import { useState } from "react";
import ComponentKatalog_HeaderTamplate from "@/app_modules/katalog/component/header_tamplate";
import AppComponentGlobal_LayoutTamplate from "@/app_modules/component_global/component_layout_tamplate";
export default function LayoutProfile_UpdateFotoBackground({
children,
@@ -27,11 +28,11 @@ export default function LayoutProfile_UpdateFotoBackground({
return (
<>
<AppShell
<AppComponentGlobal_LayoutTamplate
header={<ComponentKatalog_HeaderTamplate title="Update Background" />}
>
{children}
</AppShell>
</AppComponentGlobal_LayoutTamplate>
</>
);
}

View File

@@ -14,6 +14,7 @@ import {
import { useRouter } from "next/navigation";
import { useState } from "react";
import ComponentKatalog_HeaderTamplate from "@/app_modules/katalog/component/header_tamplate";
import AppComponentGlobal_LayoutTamplate from "@/app_modules/component_global/component_layout_tamplate";
export default function UploadFotoProfileLayout({
children,
@@ -27,11 +28,11 @@ export default function UploadFotoProfileLayout({
return (
<>
<AppShell
<AppComponentGlobal_LayoutTamplate
header={<ComponentKatalog_HeaderTamplate title="Update Foto" />}
>
{children}
</AppShell>
</AppComponentGlobal_LayoutTamplate>
</>
);
}