Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed Dec 12, 2024
1 parent 9b67f03 commit 31462ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const BORDER_SIZE = 1
export const EditPrice = () => {
const strings = useStrings()
const [isFocused, setIsFocused] = React.useState(false)
const {styles, colors} = useStyles()
const {styles, color} = useStyles()
const {isDark} = useTheme()

const swapForm = useSwap()
Expand All @@ -34,9 +34,10 @@ export const EditPrice = () => {
autoComplete="off"
value={disabled ? String(swapForm.estimate?.netPrice ?? 0) : swapForm.wantedPrice.value}
placeholder="0"
placeholderTextColor={color.gray_600}
onChangeText={(value) => swapForm.dispatch({type: 'WantedPriceInputChanged', value})}
allowFontScaling
selectionColor={colors.cursor}
selectionColor={color.input_selected}
style={styles.amountInput}
underlineColorAndroid="transparent"
editable={!disabled}
Expand Down Expand Up @@ -120,8 +121,6 @@ const useStyles = () => {
justifyContent: 'center',
},
})
const colors = {
cursor: color.input_selected,
}
return {styles, colors} as const

return {styles, color} as const
}

This file was deleted.

0 comments on commit 31462ce

Please sign in to comment.