# fix
- Create dan edit
- Bagikam WA
- Loading
## No isssue
This commit is contained in:
2024-05-22 14:08:17 +08:00
parent ce35aa8f51
commit 68e0a9a237
20 changed files with 2967 additions and 227 deletions

View File

@@ -0,0 +1,24 @@
export let defaultSyarat = `
<p><strong>Syarat &amp; Ketentuan :</strong></p>
<p><i>* Tuliskan sesuai kebutuhan</i></p>
`;
export let defaultDeskripsi = `
<p>
<strong>Deskripsi :</strong>
</p>
<p>Jika berminat dapat menghubungi WA berikut</p>
<p>+6281 xxx xxx xx</p>
<p>Kirim CV anda melalui email berikut</p>
<p>test-email@gmail.com</p>
<p>Atau kunjungi website kami:</p>
<p>
<a
href="https://test-hipmi.wibudev.com/"
rel="noopener noreferrer"
target="_blank"
>
https://test-hipmi.wibudev.com/
</a>
</p>
`;

View File

@@ -23,6 +23,8 @@ export default function ComponentJob_HeaderTamplate({
bg?: any;
}) {
const router = useRouter();
const [isLoading, setLoading] = useState(false);
const [isRightLoading, setRightLoading] = useState(false);
return (
<>
<Header
@@ -35,8 +37,10 @@ export default function ComponentJob_HeaderTamplate({
<ActionIcon variant="transparent" disabled></ActionIcon>
) : (
<ActionIcon
loading={isLoading ? true : false}
variant="transparent"
onClick={() => {
setLoading(true);
if (route === null || route === undefined) {
return router.back();
} else {
@@ -54,8 +58,12 @@ export default function ComponentJob_HeaderTamplate({
} else {
return (
<ActionIcon
loading={isRightLoading ? true : false}
variant="transparent"
onClick={() => router.push(route2)}
onClick={() => {
setRightLoading(true);
router.push(route2);
}}
>
{icon}
</ActionIcon>

View File

@@ -5,7 +5,7 @@ import { Center } from "@mantine/core";
export default function ComponentJob_IsEmptyData({ text }: { text: string }) {
return (
<>
<Center h={"50vh"} fz={"sm"} fw={"bold"}>
<Center h={"50vh"} fz={"sm"} fw={"bold"} c={"gray"}>
{text}
</Center>
</>