// material-ui import { Grid, Typography, Stack, Button, } from '@mui/material'; import * as UrlUtils from "utils/ApiPathConst"; import * as React from "react"; import * as HttpUtils from "utils/HttpUtils"; import Loadable from 'components/Loadable'; const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent'))); const EmailTemplateTable = Loadable(React.lazy(() => import('pages/EmailTemplate/Search_GLD/DataGrid'))) import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline'; import MainCard from 'components/MainCard'; const BackgroundHead = { backgroundImage: `url(${titleBackgroundImg})`, width: '100%', height: '100%', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundColor: '#0C489E', backgroundPosition: 'right' } import { useNavigate } from "react-router"; import {PNSPS_LONG_BUTTON_THEME} from "../../../themes/buttonConst"; import {ThemeProvider} from "@emotion/react"; // ==============================|| DASHBOARD - DEFAULT ||============================== // const Index = () => { const [record, setRecord] = React.useState([]); const [onReady, setOnReady] = React.useState(false); const navigate = useNavigate() React.useLayoutEffect(() => { loadForm(); }, []); React.useLayoutEffect(() => { setOnReady(true); }, [record]); const loadForm = () => { HttpUtils.get({ url: UrlUtils.GET_EMAIL_LIST, onSuccess: (responseData) => { setRecord(responseData); } }); } return ( !onReady ? : (
Email Template
{/*row 1*/}
) ); }; export default Index;