Skip to content

Commit

Permalink
create and edit address update
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackninja864 committed Jul 27, 2023
1 parent 1ddb4a3 commit 00ff7e4
Show file tree
Hide file tree
Showing 8 changed files with 1,588 additions and 1,898 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { View } from "react-native";
import { tailwind } from "@tailwind";
import { translate } from "@translations";
import { AddressType } from "@waveshq/walletkit-ui/dist/store";
import {
AddressType as WalletAddressType,
getAddressType,
} from "@waveshq/walletkit-core";
import {
ThemedIcon,
ThemedTextV2,
Expand Down Expand Up @@ -94,9 +98,11 @@ export function AddressRow({
address !== undefined &&
jellyfishWalletAddress.includes(address)
) {
const type = getAddressType(address, networkName);
// wallet address that does not have a label
setMatchedAddress({
address,
address: type !== WalletAddressType.ETH ? address : "",
evmAddress: type === WalletAddressType.ETH ? address : "",
label: "",
isMine: true,
});
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export const BottomSheetAddressDetail = (
name: props.navigateToScreen.screenName,
params: {
title: "Edit address label",
isAddressBook: false,
address: item,
addressLabel:
labeledAddresses != null ? labeledAddresses[item] : "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ export const BottomSheetAddressDetailV2 = (
name: props.navigateToScreen.screenName,
params: {
title: "Edit wallet label",
isAddressBook: false,
address: item,
addressLabel:
labeledAddresses != null ? labeledAddresses[item] : "",
Expand Down
Loading

0 comments on commit 00ff7e4

Please sign in to comment.