Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

57 строки
1.8 KiB

  1. // material-ui
  2. import {
  3. Grid
  4. } from '@mui/material';
  5. import MainCard from "components/MainCard";
  6. import * as React from "react";
  7. import * as DateUtils from "utils/DateUtils";
  8. import Loadable from 'components/Loadable';
  9. const SearchForm = Loadable(React.lazy(() => import('./SearchPublicNoticeForm')));
  10. const EventTable = Loadable(React.lazy(() => import('./SearchPublicNoticeTable')));
  11. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  12. const UserSearchPage_Individual = () => {
  13. const [searchCriteria, setSearchCriteria] = React.useState({
  14. dateTo: DateUtils.dateValue(new Date()),
  15. dateFrom: DateUtils.dateValue(new Date().setDate(new Date().getDate()-14)),
  16. });
  17. function applySearch(input) {
  18. setSearchCriteria(input);
  19. }
  20. return (
  21. <Grid container sx={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
  22. {/*row 1*/}
  23. <Grid item xs={12} md={12} lg={12} sx={{mb:-3}}>
  24. <SearchForm
  25. applySearch={applySearch}
  26. searchCriteria={searchCriteria}
  27. />
  28. </Grid>
  29. {/*row 2*/}
  30. <Grid item xs={12} md={12} lg={12} >
  31. <MainCard elevation={0}
  32. border={false}
  33. content={false}
  34. sx={{width: "-webkit-fill-available",height: "100%", minHeight:'100%'}}
  35. >
  36. <div style={{height: '100%', width: '100%' }}>
  37. <EventTable
  38. autoHeight
  39. searchCriteria={searchCriteria}
  40. />
  41. </div>
  42. </MainCard>
  43. </Grid>
  44. </Grid>
  45. );
  46. };
  47. export default UserSearchPage_Individual;