Skip to content

Commit

Permalink
Fix delegate screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Perronef5 committed Nov 25, 2024
1 parent b574287 commit b05014d
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 222 deletions.
5 changes: 4 additions & 1 deletion src/components/HNTKeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ const HNTKeyboardSelector = forwardRef(
: undefined
setValue(val || '0')

bottomSheetModalRef.current?.expand()
// wait 1 render cycle to expand
setTimeout(() => {
bottomSheetModalRef.current?.expand()
}, 100)
},
[handleVisible, decimals],
)
Expand Down
4 changes: 3 additions & 1 deletion src/components/SubmitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SwipeButton from 'rn-swipe-button'
import SwipeIcon from '@assets/svgs/swipeIcon.svg'
import { Font, Theme } from '@config/theme/theme'
import { useColors } from '@config/theme/themeHooks'
import { StyleProp, TextStyle } from 'react-native'
import Box from './Box'

type Props = {
Expand Down Expand Up @@ -37,6 +38,7 @@ const SubmitButton = ({
color: disabled ? secondaryText : colorActual,
fontSize: 19,
paddingLeft: 30,
fontWeight: 600,
},
railStyles: {
backgroundColor: rest['bg.tertiary'],
Expand All @@ -58,7 +60,7 @@ const SubmitButton = ({
railBackgroundColor={backgroundActual}
railStyles={styles.railStyles}
railBorderColor={backgroundActual}
titleStyles={styles.titleStyles}
titleStyles={styles.titleStyles as StyleProp<TextStyle>}
titleMaxFontScale={1}
thumbIconBackgroundColor={backgroundActual}
thumbIconBorderColor={colorActual}
Expand Down
Loading

0 comments on commit b05014d

Please sign in to comment.