Skip to content

Commit

Permalink
Merge pull request #798 from Koniverse/issue-796
Browse files Browse the repository at this point in the history
[Issue-796]: Error page in case touch Icon account in Browser tab and fix some UI bugs
  • Loading branch information
nguyenduythuc authored Jun 20, 2023
2 parents e727e1c + 141c837 commit bed71bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AccountSettingButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const AccountSettingButton = ({ navigation }: Props) => {
return (
<TouchableOpacity
onPress={() => {
navigation.navigate('AccountsScreen');
navigation.navigate('AccountsScreen', {});
}}>
<View>
<SubWalletAvatar address={currentAccountAddress || ''} size={32} SubIcon={SubIcon} />
Expand Down
1 change: 1 addition & 0 deletions src/screens/Account/AccountsScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const AccountsScreen = ({
searchFunction={searchFunction}
autoFocus={false}
afterListItem={renderFooterComponent()}
placeholder={i18n.placeholder.accountName}
/>

<AccountCreationArea
Expand Down
4 changes: 3 additions & 1 deletion src/screens/Home/Crypto/ReceiveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ export const ReceiveModal = ({ address, selectedNetwork, modalVisible, onCancel
<Button
style={{ flex: 1 }}
disabled={!scanExplorerAddressUrl}
icon={<Icon phosphorIcon={GlobeHemisphereWest} weight={'fill'} size={'lg'} />}
icon={(iconColor: string) => (
<Icon phosphorIcon={GlobeHemisphereWest} weight={'fill'} size={'lg'} iconColor={iconColor} />
)}
type={'secondary'}
onPress={() => {
!!scanExplorerAddressUrl && Linking.openURL(scanExplorerAddressUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Transaction/helper/staking/stakingHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function getUnstakingPeriod(unstakingPeriod?: number) {
}

export function getWaitingTime(waitingTime?: number) {
const days = waitingTime ? Number(waitingTime / 24).toFixed(2) : 0;
const days = waitingTime ? Number(waitingTime / 24).toFixed(0) : 0;

if (days < 1) {
if (days) {
Expand Down

0 comments on commit bed71bc

Please sign in to comment.