mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
refactor: migrate environment to BUILD_CONFIG (#8206)
This commit is contained in:
@@ -149,7 +149,7 @@ export const ModalInner = forwardRef<HTMLDivElement, ModalProps>(
|
||||
children,
|
||||
contentWrapperClassName,
|
||||
contentWrapperStyle,
|
||||
animation = environment.isMobileEdition ? 'slideBottom' : 'fadeScaleTop',
|
||||
animation = BUILD_CONFIG.isMobileEdition ? 'slideBottom' : 'fadeScaleTop',
|
||||
fullScreen,
|
||||
...otherProps
|
||||
} = props;
|
||||
@@ -208,7 +208,7 @@ export const ModalInner = forwardRef<HTMLDivElement, ModalProps>(
|
||||
`anim-${animation}`,
|
||||
styles.modalOverlay,
|
||||
overlayClassName,
|
||||
{ mobile: environment.isMobileEdition }
|
||||
{ mobile: BUILD_CONFIG.isMobileEdition }
|
||||
)}
|
||||
style={{
|
||||
...overlayStyle,
|
||||
@@ -216,7 +216,7 @@ export const ModalInner = forwardRef<HTMLDivElement, ModalProps>(
|
||||
{...otherOverlayOptions}
|
||||
>
|
||||
<SafeArea
|
||||
bottom={environment.isMobileEdition}
|
||||
bottom={BUILD_CONFIG.isMobileEdition}
|
||||
bottomOffset={12}
|
||||
data-full-screen={fullScreen}
|
||||
data-modal={modal}
|
||||
|
||||
Reference in New Issue
Block a user