FPSMS-frontend
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

39 wiersze
898 B

  1. import { fetchAllItems } from "@/app/api/settings/item";
  2. import { RoughScheduleLoading } from "./RoughScheduleLoading";
  3. import RSOverview from "./RoughSchedileSearchView";
  4. import {
  5. SearchProdSchedule
  6. } from "@/app/api/scheduling/actions";
  7. import { ScheduleType } from "@/app/api/scheduling";
  8. interface SubComponents {
  9. Loading: typeof RoughScheduleLoading;
  10. }
  11. type Props = {
  12. type: ScheduleType;
  13. };
  14. const RoughScheduleWrapper: React.FC<Props> & SubComponents = async ({
  15. type,
  16. }) => {
  17. // console.log(type)
  18. const defaultInputs: SearchProdSchedule = {
  19. types: ["rough"],
  20. };
  21. // const [
  22. // items,
  23. // prodSchedules
  24. // ] = await Promise.all([
  25. // fetchAllItems(),
  26. // fetchProdSchedules(defaultInputs)
  27. // ])
  28. return <RSOverview type={type} defaultInputs={defaultInputs} />;
  29. };
  30. RoughScheduleWrapper.Loading = RoughScheduleLoading;
  31. export default RoughScheduleWrapper;