Update validation, dll Hospital-Portal

This commit is contained in:
ivan
2023-07-20 11:51:44 +07:00
parent 5632e9ff29
commit 4c8570b542
28 changed files with 598 additions and 128 deletions

View File

@@ -20,12 +20,12 @@ import DialogDetailClaim from '@/components/dialogs/DialogDetailClaim';
// const [notifications, setNotifications] = useState([])
// const itemList = [
// // { info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '08:00 WIB' },
// // { info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '09:00 WIB' },
// // { info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '10:00 WIB' },
// // { info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '11:00 WIB' },
// ];
const itemList = [
{ info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '08:00 WIB' },
{ info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '09:00 WIB' },
{ info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '10:00 WIB' },
{ info: 'Mohon lengkapi dokumen Mahen sadarsa', date: 'Selasa, 20 April 22', time: '11:00 WIB' },
];
// ----------------------------------------------------------------------
@@ -66,7 +66,7 @@ export default function Dashboard() {
const [policyData, setPolicyData] = useState<PolicyProps>(defaultPolicyData);
// TODO Remove This
const [itemList, setItemList] = useState([]);
//const [itemList, setItemList] = useState([]);
function handleDataLoaded(dataTable) {
let dummyData = [];
dataTable.map(function(data) {

View File

@@ -1,3 +1,4 @@
import React, { useContext, useRef, useState, useEffect } from 'react';
import { capitalCase } from "change-case";
import { Link as RouterLink } from "react-router-dom";
// @mui
@@ -23,6 +24,7 @@ import Logo from "@/components/Logo";
import Image from "@/components/Image";
// sections
import { LoginForm } from "@/sections/auth/login";
import { LanguageContext } from '@/contexts/LanguageContext';
// ----------------------------------------------------------------------
@@ -70,6 +72,7 @@ const ContentStyle = styled("div")(({ theme }) => ({
// ----------------------------------------------------------------------
export default function Login() {
const { localeData } = useContext(LanguageContext);
const { method } = useAuth();
const smUp = useResponsive("up", "sm");
@@ -80,7 +83,7 @@ export default function Login() {
<Page title="Login">
<RootStyle>
<HeaderStyle>
<Logo sx={{ width: 150, height: 150 }} />
{/*<Logo sx={{ width: 150, height: 150 }} />
{smUp && (
<Typography variant="body2" sx={{ mt: { md: -2 } }}>
Has problem with your account? {""}
@@ -97,7 +100,7 @@ export default function Login() {
Contact Us
</Link>
</Typography>
)}
)}*/}
</HeaderStyle>
{/* {mdUp && (
@@ -121,16 +124,17 @@ export default function Login() {
alignItems="center"
sx={{ mb: 5 }}
>
<Logo sx={{ width: 90, height: 90 }} />
<Box sx={{ flexGrow: 1 }}>
<Typography variant="h4" gutterBottom>
Sign in to LinkSehat
{localeData.txtLogin1}
</Typography>
<Typography sx={{ color: "text.secondary" }}>
Enter your details below.
<Typography variant="body1" sx={{ color: 'text.secondary' }}>
{localeData.txtLogin2}
</Typography>
</Box>
<Tooltip
{/*<Tooltip
title={capitalCase(method)}
placement="right"
>
@@ -141,12 +145,12 @@ export default function Login() {
sx={{ width: 32, height: 32 }}
/>
</>
</Tooltip>
</Tooltip>*/}
</Stack>
<LoginForm />
{false && !smUp && (
{/*{false && !smUp && (
<Typography
variant="body2"
align="center"
@@ -161,7 +165,7 @@ export default function Login() {
Get started
</Link>
</Typography>
)}
)}*/}
</ContentStyle>
</Container>
</RootStyle>