feat: rewrite writing variable

This commit is contained in:
caturbgs
2021-12-22 20:44:06 +07:00
parent a47ae4c85f
commit 54976f02bf
8 changed files with 80 additions and 75 deletions

View File

@@ -10,7 +10,7 @@ import {ModalLoaderContext} from "../../utils/modal";
const {Title, Text} = Typography;
export const DetailProduct = observer(() => {
export const ProductDetail = observer(() => {
const store = useStore();
const modalLoader = useContext(ModalLoaderContext);
@@ -20,8 +20,12 @@ export const DetailProduct = observer(() => {
name: "Home",
},
{
route: LINKS.DETAILPRODUCT,
name: <span style={{fontWeight: 'bold'}}>Detail Product</span>,
route: LINKS.PRODUCT,
name: <span style={{fontWeight: "bold"}}>Product</span>,
},
{
route: LINKS.PRODUCT_DETAIL,
name: <span style={{fontWeight: 'bold'}}>Product Detail</span>,
},
];
@@ -75,7 +79,7 @@ export const DetailProduct = observer(() => {
<div className={["ppob-container"].join(" ")}>
<BreadcumbComponent data={routeData}/>
<Card>
<Title strong>Detail Product</Title>
<Title strong>Product Detail</Title>
<Row style={{marginBottom: 20}}>
<Col lg={12} xs={24}>
<Row>