-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into TW-1423-unable-in-app-browser-on-ios-…
…by-default
- Loading branch information
Showing
42 changed files
with
675 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum OnRampOverlayState { | ||
Start = 'start', | ||
Continue = 'continue', | ||
Closed = 'closed' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...hooks/request-confirmation/approve-internal-operation-request-action-payload.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { ParamsWithKind } from '@taquito/taquito'; | ||
|
||
import { AccountInterface } from '../../interfaces/account.interface'; | ||
import { ReadOnlySignerPayload } from 'src/types/read-only-signer-payload'; | ||
|
||
export interface ApproveInternalOperationRequestActionPayloadInterface { | ||
rpcUrl: string; | ||
sender: AccountInterface; | ||
sender: ReadOnlySignerPayload; | ||
opParams: ParamsWithKind[]; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/hooks/request-confirmation/approve-operation-request-action-payload.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { OperationRequestOutput } from '@airgap/beacon-sdk'; | ||
import { ParamsWithKind } from '@taquito/taquito'; | ||
|
||
import { AccountInterface } from '../../interfaces/account.interface'; | ||
import { ReadOnlySignerPayload } from 'src/types/read-only-signer-payload'; | ||
|
||
export interface ApproveOperationRequestActionPayloadInterface { | ||
rpcUrl: string; | ||
sender: AccountInterface; | ||
sender: ReadOnlySignerPayload; | ||
opParams: ParamsWithKind[]; | ||
message: OperationRequestOutput; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/hooks/root-hooks/use-reset-permanent-initial-settings.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useEffect } from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
|
||
import { resetPermanentInitialSettingsAction } from 'src/store/settings/settings-actions'; | ||
|
||
export const useResetPermanentInitialSettings = () => { | ||
const dispatch = useDispatch(); | ||
|
||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
useEffect(() => void dispatch(resetPermanentInitialSettingsAction()), []); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { isAndroid } from 'src/config/system'; | ||
|
||
import { useNetworkInfo } from './use-network-info.hook'; | ||
|
||
export const useCanUseOnRamp = () => { | ||
const { isTezosNode } = useNetworkInfo(); | ||
|
||
return isTezosNode && isAndroid; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { useIsFocused } from '@react-navigation/native'; | ||
import { useCallback } from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
|
||
import { OnRampOverlayState } from 'src/enums/on-ramp-overlay-state.enum'; | ||
import { setOnRampOverlayStateAction } from 'src/store/settings/settings-actions'; | ||
import { useOnRampOverlayStateSelector } from 'src/store/settings/settings-selectors'; | ||
|
||
export const useOnRampContinueOverlay = () => { | ||
const isFocused = useIsFocused(); | ||
const dispatch = useDispatch(); | ||
const state = useOnRampOverlayStateSelector(); | ||
const isOpened = isFocused && state === OnRampOverlayState.Continue; | ||
|
||
const onClose = useCallback(() => dispatch(setOnRampOverlayStateAction(OnRampOverlayState.Closed)), [dispatch]); | ||
|
||
return { isOpened, onClose }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.