Skip to content

Commit

Permalink
fix: remove white space
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 authored and CarlLiu2023 committed May 10, 2023
1 parent 83863f8 commit 66f29cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Box, ListItemText, MenuItem, MenuList, useTheme } from '@mui/material'

import { B3Dialog, B3Sping, CustomButton } from '@/components'
import { b3HexToRgb } from '@/components/outSideComponents/utils/b3CustomStyles'
import { useMobile } from '@/hooks'
import { GlobaledContext } from '@/shared/global'
import { getB2BShoppingList, getBcShoppingList } from '@/shared/service/b2b'

Expand Down Expand Up @@ -43,6 +44,7 @@ export default function OrderShoppingList(props: OrderShoppingListProps) {
} = useContext(GlobaledContext)

const theme = useTheme()
const [isMobile] = useMobile()
const primaryColor = theme.palette.primary.main

const [list, setList] = useState([])
Expand Down Expand Up @@ -113,9 +115,16 @@ export default function OrderShoppingList(props: OrderShoppingListProps) {
>
<B3Sping isSpinning={isLoading} isFlex={false}>
<Box
sx={{
height: '430px',
}}
sx={
isMobile
? {
height: '430px',
}
: {
padding: isLoading ? '4rem 0' : 'unset',
maxHeight: '430PX',
}
}
>
<MenuList
sx={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ export default function QuoteDetailSummary(props: QuoteDetailSummaryProps) {
}}
>
<Typography>Discount amount</Typography>
<Typography>{`-${priceFormat(+discount)}`}</Typography>
<Typography>
{+discount > 0
? `-${priceFormat(+discount)}`
: priceFormat(+discount)}
</Typography>
</Grid>
<Grid
container
Expand Down

0 comments on commit 66f29cf

Please sign in to comment.