
* Add warning alert before finilizing draft order * Add line error indicators in draft order view * Handle unfilled fields errors before draft order finalize * Handle draft order line errors * Differentiate line alert severity * Fix order line alert margin * Remove unnecessairy comment * Refactor order draft alert components * Update order draft test snapshots * Refaactor order details code * Hide add products button when no products available on order draft page * Hide no shipping methods warning if they cannot be determined * Update product assignment dialog messaages * Update order channel error messages * Fix missing order lines in error crash
59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
import { makeStyles } from "@saleor/macaw-ui";
|
|
|
|
export const useStyles = makeStyles(
|
|
theme => ({
|
|
avatar: {
|
|
paddingLeft: 0,
|
|
width: 64,
|
|
},
|
|
colName: {
|
|
paddingLeft: 0,
|
|
},
|
|
colVariantCheckbox: {
|
|
padding: 0,
|
|
},
|
|
noContentText: {
|
|
marginBottom: theme.spacing(3),
|
|
},
|
|
content: {
|
|
overflowY: "scroll",
|
|
paddingTop: 0,
|
|
marginBottom: theme.spacing(3),
|
|
},
|
|
grayText: {
|
|
color: theme.palette.text.disabled,
|
|
},
|
|
loadMoreLoaderContainer: {
|
|
alignItems: "center",
|
|
display: "flex",
|
|
height: theme.spacing(3),
|
|
justifyContent: "center",
|
|
marginTop: theme.spacing(3),
|
|
},
|
|
overflow: {
|
|
overflowY: "hidden",
|
|
},
|
|
topArea: {
|
|
overflowY: "hidden",
|
|
paddingBottom: theme.spacing(6),
|
|
margin: theme.spacing(0, 3, 3, 3),
|
|
},
|
|
productCheckboxCell: {
|
|
"&:first-child": {
|
|
paddingLeft: 0,
|
|
paddingRight: 0,
|
|
},
|
|
},
|
|
textRight: {
|
|
textAlign: "right",
|
|
},
|
|
variantCheckbox: {
|
|
left: theme.spacing(),
|
|
position: "relative",
|
|
},
|
|
wideCell: {
|
|
width: "100%",
|
|
},
|
|
}),
|
|
{ name: "OrderProductAddDialog" },
|
|
);
|