|
|
|
|
@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
|
|
|
|
|
|
|
import styles from './Sheet.module.css';
|
|
|
|
|
|
|
|
|
|
const Sheet = memo(({ visible, onClosePress, children, maxWidth = 800 }) => {
|
|
|
|
|
const Sheet = memo(({ visible, onClosePress, children, maxWidth = 800, style }) => {
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
@ -17,8 +17,8 @@ const Sheet = memo(({ visible, onClosePress, children, maxWidth = 800 }) => {
|
|
|
|
|
exit={{ scale: 0, opacity: 0 }}
|
|
|
|
|
className={styles.sheet}
|
|
|
|
|
>
|
|
|
|
|
<div style={{ margin: 'auto', maxWidth, height: '100%', position: 'relative', padding: '1em 0' }}>
|
|
|
|
|
<div style={{ overflowY: 'scroll', height: '100%' }}>
|
|
|
|
|
<div style={{ margin: 'auto', maxWidth, height: '100%', position: 'relative' }}>
|
|
|
|
|
<div style={{ overflowY: 'scroll', height: '100%', ...style }}>
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|