File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
app/[locale]/(main)/(container)/cart Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ const Page = () => {
180180 value = { cart . discountTotal }
181181 TypographyProps = { {
182182 fontWeight : 600 ,
183+ color : 'error' ,
183184 } }
184185 />
185186 ) ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const PriceLabel: FC<PriceLabelProps> = ({
2828 return (
2929 < Box display = "flex" alignItems = "center" >
3030 < Typography { ...TypographyProps } > { _value ?. toLocaleString ( ) } </ Typography >
31- < PriceUnit title = { t ( 'units.price' ) } />
31+ < PriceUnit title = { t ( 'units.price' ) } TypographyProps = { TypographyProps } />
3232 </ Box >
3333 ) ;
3434} ;
Original file line number Diff line number Diff line change 1- import { Typography } from '@mui/material' ;
1+ import { Typography , TypographyProps } from '@mui/material' ;
22import { FC } from 'react' ;
33
44export interface PriceUnitProps {
55 title : string ;
6+ TypographyProps ?: Partial < TypographyProps > ;
67}
7- const PriceUnit : FC < PriceUnitProps > = ( { title } ) => {
8+ const PriceUnit : FC < PriceUnitProps > = ( { title, TypographyProps } ) => {
89 return (
910 < Typography
11+ { ...TypographyProps }
1012 sx = { {
13+ ...TypographyProps ?. sx ,
1114 fontSize : 10 ,
1215 fontWeight : 400 ,
1316 userSelect : 'none' ,
You can’t perform that action at this time.
0 commit comments