upd: search dan notifikasi
Deskripsi: - menggunakan layout navbar baru - fix on sticky position page jbatan list No Issues
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
"use client"
|
||||
import { LayoutIconBack, LayoutNavbarHome } from '@/module/_global';
|
||||
import { Box, Grid, Text } from '@mantine/core';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function NavbarNotification() {
|
||||
const router = useRouter()
|
||||
return (
|
||||
<LayoutNavbarHome>
|
||||
<Grid justify='center' align='center'>
|
||||
<Grid.Col span="auto">
|
||||
<LayoutIconBack back='/home' />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<Text ta={'center'} fw={'bold'} c={'white'} >NOTIFIKASI</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span="auto"></Grid.Col>
|
||||
</Grid>
|
||||
</LayoutNavbarHome>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { LayoutIconBack, LayoutNavbarHome } from '@/module/_global'
|
||||
import { Box, Grid, Text } from '@mantine/core'
|
||||
import { LayoutNavbarNew } from '@/module/_global'
|
||||
import { Box, } from '@mantine/core'
|
||||
import React from 'react'
|
||||
import NavbarNotification from '../components/ui/navbar_notification'
|
||||
import ListNotification from '../components/list_notification'
|
||||
|
||||
export default function ViewNotification() {
|
||||
return (
|
||||
<Box>
|
||||
<NavbarNotification />
|
||||
<LayoutNavbarNew back='/home' title='Notifikasi' menu={<></>} />
|
||||
<Box p={20}>
|
||||
<ListNotification />
|
||||
</Box>
|
||||
|
||||
@@ -9,7 +9,7 @@ import toast from "react-hot-toast";
|
||||
export default function NavbarListPosition() {
|
||||
const [isOpen, setOpen] = useState(false)
|
||||
return (
|
||||
<Box>
|
||||
<>
|
||||
<LayoutNavbarNew back="/home" title="Jabatan"
|
||||
menu={
|
||||
<ActionIcon onClick={() => setOpen(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
|
||||
@@ -23,6 +23,6 @@ export default function NavbarListPosition() {
|
||||
toast.success('Sukses! data tersimpan')
|
||||
}} />
|
||||
</LayoutDrawer>
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
"use client"
|
||||
import { LayoutIconBack, LayoutNavbarHome } from '@/module/_global';
|
||||
import { Box, Grid, Text } from '@mantine/core';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function NavbarSearch() {
|
||||
const router = useRouter()
|
||||
return (
|
||||
<Box>
|
||||
<LayoutNavbarHome>
|
||||
<Grid justify='center' align='center'>
|
||||
<Grid.Col span="auto">
|
||||
<LayoutIconBack back='/home' />
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<Text ta={'center'} fw={'bold'} c={'white'} >PENCARIAN</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span="auto"></Grid.Col>
|
||||
</Grid>
|
||||
</LayoutNavbarHome>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
|
||||
import { LayoutIconBack, LayoutNavbarHome, WARNA } from '@/module/_global';
|
||||
import { ActionIcon, Box, Grid, Text, TextInput } from '@mantine/core';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { LayoutNavbarNew, WARNA } from '@/module/_global';
|
||||
import { Box, TextInput } from '@mantine/core';
|
||||
import React from 'react';
|
||||
import { HiChevronLeft, HiMagnifyingGlass } from 'react-icons/hi2';
|
||||
import NavbarSearch from '../components/ui/navbar_search';
|
||||
import { HiMagnifyingGlass } from 'react-icons/hi2';
|
||||
|
||||
export default function ViewSearch() {
|
||||
return (
|
||||
<>
|
||||
<NavbarSearch />
|
||||
<LayoutNavbarNew back='/home' title='Pencarian' menu={<></>} />
|
||||
<Box p={20}>
|
||||
<TextInput
|
||||
styles={{
|
||||
|
||||
Reference in New Issue
Block a user