
* Fix app embed * initial setup * Create ButtonWithSelect component * Use context * Use dialog * Handle app-bridge actions * Code adjustments, bump packages * Fix tests * Fix schema formatting * Send response * Use latest package versions
22 lines
364 B
TypeScript
22 lines
364 B
TypeScript
import { makeStyles } from "@saleor/macaw-ui";
|
|
|
|
const ITEM_HEIGHT = 48;
|
|
|
|
export const useStyles = makeStyles(
|
|
theme => ({
|
|
popper: {
|
|
marginTop: theme.spacing(1),
|
|
zIndex: 2
|
|
},
|
|
paper: {
|
|
maxHeight: ITEM_HEIGHT * 4.5,
|
|
overflowY: "scroll"
|
|
},
|
|
buttonIcon: {
|
|
margin: 0
|
|
}
|
|
}),
|
|
{
|
|
name: "ButtonWithSelect"
|
|
}
|
|
);
|