FPSMS-frontend
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

48 Zeilen
1.5 KiB

  1. import ProductionProcessPage from "../../../components/ProductionProcess/ProductionProcessPage";
  2. import { I18nProvider, getServerI18n } from "../../../i18n";
  3. import Add from "@mui/icons-material/Add";
  4. import Button from "@mui/material/Button";
  5. import Stack from "@mui/material/Stack";
  6. import Typography from "@mui/material/Typography";
  7. import { Metadata } from "next";
  8. import Link from "next/link";
  9. import { Suspense } from "react";
  10. import { fetchPrinterCombo } from "@/app/api/settings/printer";
  11. export const metadata: Metadata = {
  12. title: "Job Order Production Process",
  13. };
  14. const productionProcess: React.FC = async () => {
  15. const { t } = await getServerI18n("common");
  16. const printerCombo = await fetchPrinterCombo();
  17. return (
  18. <>
  19. <Stack
  20. direction="row"
  21. justifyContent="space-between"
  22. flexWrap="wrap"
  23. rowGap={2}
  24. >
  25. <Typography variant="h4" marginInlineEnd={2}>
  26. {t("Job Order Production Process")}
  27. </Typography>
  28. {/* Optional: Remove or modify create button, because creation is done via API automatically */}
  29. {/* <Button
  30. variant="contained"
  31. startIcon={<Add />}
  32. LinkComponent={Link}
  33. href="/productionProcess/create"
  34. >
  35. {t("Create Process")}
  36. </Button> */}
  37. </Stack>
  38. <I18nProvider namespaces={["common", "production","purchaseOrder","jo","dashboard"]}>
  39. <ProductionProcessPage printerCombo={printerCombo} />
  40. </I18nProvider>
  41. </>
  42. );
  43. };
  44. export default productionProcess;