feat:
- Tampilan buat berita - Tampilan dialog page buat proyek investasi - Tampilan list edit beritq - # No issue fix: - Perubahan minor
This commit is contained in:
@@ -1,17 +1,36 @@
|
||||
"use client";
|
||||
|
||||
import { RouterInvestasi } from "@/app/lib/router_hipmi/router_investasi";
|
||||
import { Warna } from "@/app/lib/warna";
|
||||
import HeaderTamplate from "@/app_modules/component/header_tamplate";
|
||||
import { AppShell } from "@mantine/core";
|
||||
import { AppShell, Button, Center, Footer } from "@mantine/core";
|
||||
import { useRouter } from "next/navigation";
|
||||
import React from "react";
|
||||
import toast from "react-simple-toasts";
|
||||
|
||||
export default function LayoutEditBeritaInvestasi({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const router = useRouter()
|
||||
return (
|
||||
<>
|
||||
<AppShell header={<HeaderTamplate title="Edit Berita" />}>
|
||||
<AppShell
|
||||
header={<HeaderTamplate title="Edit Berita" />}
|
||||
footer={
|
||||
<Footer height={70} sx={{ borderStyle: "none" }}>
|
||||
<Center>
|
||||
<Button w={300} radius={50} bg={Warna.hijau_muda} color="green" onClick={() => {
|
||||
router.back()
|
||||
toast("Berita terupdate")
|
||||
}}>
|
||||
Update
|
||||
</Button>
|
||||
</Center>
|
||||
</Footer>
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</AppShell>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user