Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/remove-old-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored Oct 19, 2023
2 parents 9399449 + 83dba11 commit 30de499
Show file tree
Hide file tree
Showing 21 changed files with 1,245 additions and 1,018 deletions.
450 changes: 225 additions & 225 deletions apps/wallet-mobile/ios/Podfile.lock

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions apps/wallet-mobile/ios/yoroi.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -956,11 +956,7 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
OTHER_LDFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
};
Expand Down Expand Up @@ -1029,11 +1025,7 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-Wl",
"-ld_classic",
);
OTHER_LDFLAGS = "$(inherited)";
REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
9 changes: 4 additions & 5 deletions apps/wallet-mobile/src/TxHistory/ActionsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {Linking, StyleSheet, Text, TouchableOpacity, View} from 'react-native'
import {Icon, Spacer} from '../components'
import {features} from '../features'
import {useSend} from '../features/Send/common/SendContext'
import {useSwapTouched} from '../features/Swap/common/SwapFormProvider'
import {useSwapForm} from '../features/Swap/common/SwapFormProvider'
import {actionMessages} from '../i18n/global-messages'
import env from '../legacy/env'
import {useMetrics} from '../metrics/metricsManager'
Expand All @@ -27,8 +27,8 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
const navigateTo = useNavigateTo()
const wallet = useSelectedWallet()
const {resetForm} = useSend()
const {orderData, resetState} = useSwap()
const {resetTouches} = useSwapTouched()
const {orderData} = useSwap()
const {resetSwapForm} = useSwapForm()
const {track} = useMetrics()
const sellTokenInfo = useTokenInfo({
wallet,
Expand Down Expand Up @@ -64,8 +64,7 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
}

const handleOnSwap = () => {
resetTouches()
resetState()
resetSwapForm()

track.swapInitiated({
from_asset: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {asQuantity, Quantities} from '../../../../../yoroi-wallets/utils'
import {useNavigateTo} from '../../navigation'
import {PoolIcon} from '../../PoolIcon/PoolIcon'
import {useStrings} from '../../strings'
import {useSwapTouched} from '../../SwapFormProvider'
import {useSwapForm} from '../../SwapFormProvider'

const PRECISION = 14

Expand All @@ -25,7 +25,7 @@ export const SelectPoolFromList = ({pools = []}: Props) => {
const strings = useStrings()
const wallet = useSelectedWallet()
const {selectedPoolChanged, orderData} = useSwap()
const {poolTouched} = useSwapTouched()
const {poolTouched} = useSwapForm()
const [selectedCardIndex, setSelectedCardIndex] = useState(orderData.selectedPoolId)
const navigate = useNavigateTo()
const {track} = useMetrics()
Expand Down
Loading

0 comments on commit 30de499

Please sign in to comment.