Skip to content

Commit cd57479

Browse files
committed
shouldUseNarrowLayout not necessary after other PR merge
1 parent 35e3492 commit cd57479

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/styles/utils/generators/ModalStyleUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
5757
shouldUseModalPaddingStyle = true,
5858
shouldUseReanimatedModal = false,
5959
): GetModalStyles => {
60-
const {windowWidth, isSmallScreenWidth, shouldUseNarrowLayout} = windowDimensions;
60+
const {windowWidth, isSmallScreenWidth} = windowDimensions;
6161

6262
let modalStyle: GetModalStyles['modalStyle'] = {
6363
margin: 0,
@@ -268,7 +268,7 @@ const createModalStyleUtils: StyleUtilGenerator<GetModalStylesStyleUtil> = ({the
268268
modalStyle = {
269269
...modalStyle,
270270
...{
271-
marginLeft: isSmallScreenWidth || (shouldUseReanimatedModal && shouldUseNarrowLayout) ? 0 : windowWidth - variables.sideBarWidth,
271+
marginLeft: isSmallScreenWidth ? 0 : windowWidth - variables.sideBarWidth,
272272
width: isSmallScreenWidth ? '100%' : variables.sideBarWidth,
273273
flexDirection: 'row',
274274
justifyContent: 'flex-end',

0 commit comments

Comments
 (0)