Skip to content

Commit

Permalink
fix: update order details style
Browse files Browse the repository at this point in the history
  • Loading branch information
b3aton committed Dec 29, 2022
1 parent e619926 commit 0473c15
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion apps/storefront/src/components/B3Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
DialogActions,
DialogContent,
DialogTitle,
Divider,
} from '@mui/material'

import {
Expand Down Expand Up @@ -134,10 +135,11 @@ export const B3Dialog:<T> ({
</DialogTitle>
)
}

<Divider />
<DialogContent>
{children}
</DialogContent>
<Divider />
<DialogActions
sx={
isShowBordered ? {
Expand Down
3 changes: 3 additions & 0 deletions apps/storefront/src/components/filter/B3FilterMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Dialog from '@mui/material/Dialog'
import DialogActions from '@mui/material/DialogActions'
import DialogContent from '@mui/material/DialogContent'
import DialogTitle from '@mui/material/DialogTitle'
import Divider from '@mui/material/Divider'

import {
// DeepPartial,
Expand Down Expand Up @@ -159,6 +160,7 @@ const B3FilterMore:<T, Y> ({
<DialogTitle id="alert-dialog-title">
Filters
</DialogTitle>
<Divider />
<DialogContent>
<Box
sx={{
Expand Down Expand Up @@ -189,6 +191,7 @@ const B3FilterMore:<T, Y> ({

</Button>
</DialogContent>
<Divider />
<DialogActions>
<Button onClick={handleClose}>Cancel</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,10 @@ const CreateShoppingList = ({
>
<DialogTitle
id="alert-dialog-title"
sx={{
borderBottom: '1px solid #D9DCE9',
}}
>
Create new
</DialogTitle>
<Divider />
<DialogContent>
<Box sx={{
minHeight: '250px',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ export const OrderDialog: (props: OrderDialogProps) => ReactElement = ({
}

const handleSaveClick = () => {
if (checkedArr.length === 0) {
return
}

if (type === 'shoppingList') {
handleClose()
setOpenShoppingList(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,10 @@ export const OrderShoppingList = (props: orderShoppingListProps) => {

<DialogTitle
id="alert-dialog-title"
sx={{
borderBottom: '1px solid #D9DCE9',
}}
>
{dialogTitle}
</DialogTitle>
<Divider />
<DialogContent>
<Box
sx={{
Expand Down

0 comments on commit 0473c15

Please sign in to comment.