index.js 368 B

12345678910
  1. import { Box } from "@mui/material";
  2. import { CGoodForm } from "./GoodForm";
  3. import { connect } from "react-redux";
  4. export const AdminGoodPage = ({ good }) => (
  5. <Box className="AdminGoodPage">
  6. <CGoodForm good={good} />
  7. </Box>
  8. );
  9. export const CAdminGoodPage = connect((state) => ({ good: state.promise?.adminGoodById?.payload || {} }))(AdminGoodPage);