Skip to content

Commit

Permalink
Fix BottomModal types
Browse files Browse the repository at this point in the history
  • Loading branch information
mvaivre committed Oct 16, 2024
1 parent 55eb0f5 commit d355c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/mobile-wallet/src/features/modals/BottomModalBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import styled from 'styled-components/native'
import BottomModalHeader from '~/features/modals/BottomModalHeader'
import { useBottomModalState } from '~/features/modals/useBottomModalState'

export interface BottomModalBaseProps extends ReturnType<typeof useBottomModalState> {
export interface BottomModalBaseProps {
modalId: number
children: ReactNode
onClose?: () => void
Expand All @@ -50,7 +50,7 @@ const BottomModalBase = ({
title,
isContentScrollable,
children
}: BottomModalBaseProps) => (
}: BottomModalBaseProps & ReturnType<typeof useBottomModalState>) => (
<KeyboardAvoidingViewStyled behavior="height" enabled={!maximisedContent}>
<Backdrop style={backdropAnimatedStyle} onPress={handleClose} />
<Container>
Expand Down

0 comments on commit d355c71

Please sign in to comment.