UI Job
# style - UI Job di bagian user selesai # fix - Scroll data untuk beranda dan tampilan yang lain selesi ## No issue
This commit is contained in:
@@ -1,33 +1,29 @@
|
||||
"use client";
|
||||
|
||||
import { RouterJob } from "@/app/lib/router_hipmi/router_job";
|
||||
import { Center, Image, Paper, Stack, Text } from "@mantine/core";
|
||||
import ComponentGlobal_SplashScreen from "@/app_modules/component_global/splash/splash_global";
|
||||
import { useShallowEffect } from "@mantine/hooks";
|
||||
import { IconBriefcase } from "@tabler/icons-react";
|
||||
import { useAtom } from "jotai";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { gs_job_hot_menu, gs_job_status } from "../global_state";
|
||||
|
||||
export default function Job_Splash() {
|
||||
import { gs_job_hot_menu, gs_job_status } from "../global_state";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { RouterJob } from "@/app/lib/router_hipmi/router_job";
|
||||
|
||||
export function Job_UiSplash() {
|
||||
const router = useRouter();
|
||||
const [hotMenu, setHotMenu] = useAtom(gs_job_hot_menu);
|
||||
const [status, setStatus] = useAtom(gs_job_status);
|
||||
|
||||
|
||||
useShallowEffect(() => {
|
||||
setTimeout(() => {
|
||||
setHotMenu(1);
|
||||
setStatus("Publish")
|
||||
setStatus("Publish");
|
||||
router.replace(RouterJob.beranda);
|
||||
}, 1000);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Center h={"100vh"}>
|
||||
<Paper p={{ base: 50, md: 60, lg: 80 }}>
|
||||
<Image alt="logo" src={"/aset/job/logo.png"} />
|
||||
</Paper>
|
||||
</Center>
|
||||
<ComponentGlobal_SplashScreen icon={<IconBriefcase size={300} />} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app_modules/job/splash/view_splash.tsx
Normal file
9
src/app_modules/job/splash/view_splash.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Job_UiSplash } from "./ui_splash";
|
||||
|
||||
export default function Job_ViewSplash() {
|
||||
return (
|
||||
<>
|
||||
<Job_UiSplash />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user