add module
Deskripsi: - add notification - add search - project No issue
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export const WARNA = {
|
||||
bgWhite: "#F4F9FD",
|
||||
biruTua: "#19345E",
|
||||
bgIcon: "#384288"
|
||||
bgIcon: "#384288",
|
||||
borderOrange: "#FCAA4B"
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
import { WARNA } from "./fun/WARNA";
|
||||
import LayoutIconBack from "./layout/layout_icon_back";
|
||||
import LayoutLogin from "./layout/layout_login";
|
||||
import LayoutNavbarHome from "./layout/layout_navbar_home";
|
||||
|
||||
export { WARNA }
|
||||
export { LayoutLogin }
|
||||
export {LayoutNavbarHome}
|
||||
export { LayoutNavbarHome }
|
||||
export {LayoutIconBack}
|
||||
19
src/module/_global/layout/layout_icon_back.tsx
Normal file
19
src/module/_global/layout/layout_icon_back.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
'use client'
|
||||
import { ActionIcon, Box } from '@mantine/core';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import React from 'react';
|
||||
import { HiChevronLeft } from 'react-icons/hi2';
|
||||
import { WARNA } from '../fun/WARNA';
|
||||
|
||||
function LayoutIconBack({ back }: { back: string }) {
|
||||
const router = useRouter()
|
||||
return (
|
||||
<Box>
|
||||
<ActionIcon variant="light" onClick={() => router.push(back)} bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
|
||||
<HiChevronLeft size={20} color='white' />
|
||||
</ActionIcon>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
export default LayoutIconBack;
|
||||
Reference in New Issue
Block a user