2021-03-30 07:40:18 +00:00
|
|
|
import { makeStyles } from "@saleor/theme";
|
2020-10-26 11:20:52 +00:00
|
|
|
|
|
|
|
const useScrollableDialogStyle = makeStyles(
|
|
|
|
theme => ({
|
|
|
|
content: {
|
|
|
|
overflowY: "hidden"
|
|
|
|
},
|
|
|
|
dialog: {
|
|
|
|
height: "calc(100% - 64px)",
|
|
|
|
maxHeight: 700
|
|
|
|
},
|
|
|
|
loadMoreLoaderContainer: {
|
|
|
|
alignItems: "center",
|
|
|
|
display: "flex",
|
|
|
|
height: theme.spacing(3),
|
|
|
|
justifyContent: "center",
|
|
|
|
marginTop: theme.spacing(3)
|
|
|
|
},
|
|
|
|
scrollArea: {
|
|
|
|
overflowY: "scroll"
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
{
|
|
|
|
name: "ScrollableDialog"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
export default useScrollableDialogStyle;
|