Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: use valid wallet addresses #2538

Merged
merged 4 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/components/WalletCard/WalletCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Default = () => {
coinIcon="Ethereum"
coinClass="border-theme-neutral-800"
walletName="Primary"
address="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT"
address="D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib"
balance="100,000 ETH"
actions={[
{ label: "Action 1", value: "1" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -606,146 +606,6 @@ exports[`Wallets should render with list view enabled as default 1`] = `
<tbody
role="rowgroup"
>
<tr
class="border-b border-theme-neutral-200"
>
<td
class="py-6 mt-1"
>
<div
class="flex"
>
<div
class="sc-AxgMl daFHdi text-theme-danger-400 border-theme-danger-light"
>
<div
class="sc-AxirZ eEbZjj"
height="20"
width="20"
>
<svg>
ark.svg
</svg>
</div>
</div>
<div
class="Avatar__AvatarWrapper-sc-1vsy2s2-0 ikUhMz"
data-testid="Avatar"
>
<div
class="w-full h-full"
>
<img
alt="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT"
src="data:image/svg+xml;utf8,<svg version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"100\\" height=\\"100\\" viewBox=\\"0 0 100 100\\"><style>circle{mix-blend-mode:soft-light;}</style><rect fill=\\"rgb(0, 188, 212)\\" width=\\"100\\" height=\\"100\\"/><circle r=\\"50\\" cx=\\"60\\" cy=\\"60\\" fill=\\"rgb(0, 150, 136)\\"/><circle r=\\"40\\" cx=\\"100\\" cy=\\"40\\" fill=\\"rgb(244, 67, 54)\\"/><circle r=\\"45\\" cx=\\"70\\" cy=\\"50\\" fill=\\"rgb(63, 81, 181)\\"/></svg>"
title="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT"
/>
</div>
</div>
</div>
</td>
<td
class="py-1"
>
<div
class="inline-block truncate align-middle"
>
<span
class="text-theme-text max-w-24 flex-auto truncate mt-4 mr-1 font-semibold text-base"
data-testid="address__wallet-name"
>
My Wallet
</span>
<span
class="sc-AxhCb ccMvAG text-theme-neutral-light font-semibold text-base"
data-testid="address__wallet-address"
>
1ASuusXSW…6T9GQ3kqT
</span>
</div>
</td>
<td
class="py-1 text-sm font-bold text-center space-x-2"
>
<div
class="inline-block align-middle text-theme-warning-400"
>
<div
class="sc-AxirZ hPsuTj"
height="16"
width="16"
>
<svg>
star.svg
</svg>
</div>
</div>
<div
class="inline-block align-middle text-theme-neutral-600"
>
<div
class="sc-AxirZ hPsuTj"
height="16"
width="16"
>
<svg>
multisig.svg
</svg>
</div>
</div>
<div
class="inline-block align-middle text-theme-neutral-600"
>
<div
class="sc-AxirZ hPsuTj"
height="16"
width="16"
>
<svg>
ledger.svg
</svg>
</div>
</div>
</td>
<td
class="font-semibold text-right"
>
<div>
2,000,000 ARK
</div>
</td>
<td
class="text-right text-theme-neutral-light"
>
<div>
1,000,000 USD
</div>
</td>
<td>
<div
class="text-theme-neutral-light hover:text-theme-neutral"
>
<div
class="relative"
data-testid="dropdown__toggle"
>
<div
class="float-right outline-none cursor-pointer focus:outline-none"
>
<div
class="sc-AxirZ eEbZjj"
height="20"
width="20"
>
<svg>
settings.svg
</svg>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr
class="border-b border-theme-neutral-200"
>
Expand Down Expand Up @@ -2459,146 +2319,6 @@ exports[`Wallets should render with list view enabled as default and empty walle
<tbody
role="rowgroup"
>
<tr
class="border-b border-theme-neutral-200"
>
<td
class="py-6 mt-1"
>
<div
class="flex"
>
<div
class="sc-AxgMl daFHdi text-theme-danger-400 border-theme-danger-light"
>
<div
class="sc-AxirZ eEbZjj"
height="20"
width="20"
>
<svg>
ark.svg
</svg>
</div>
</div>
<div
class="Avatar__AvatarWrapper-sc-1vsy2s2-0 ikUhMz"
data-testid="Avatar"
>
<div
class="w-full h-full"
>
<img
alt="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT"
src="data:image/svg+xml;utf8,<svg version=\\"1.1\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"100\\" height=\\"100\\" viewBox=\\"0 0 100 100\\"><style>circle{mix-blend-mode:soft-light;}</style><rect fill=\\"rgb(0, 188, 212)\\" width=\\"100\\" height=\\"100\\"/><circle r=\\"50\\" cx=\\"60\\" cy=\\"60\\" fill=\\"rgb(0, 150, 136)\\"/><circle r=\\"40\\" cx=\\"100\\" cy=\\"40\\" fill=\\"rgb(244, 67, 54)\\"/><circle r=\\"45\\" cx=\\"70\\" cy=\\"50\\" fill=\\"rgb(63, 81, 181)\\"/></svg>"
title="1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT"
/>
</div>
</div>
</div>
</td>
<td
class="py-1"
>
<div
class="inline-block truncate align-middle"
>
<span
class="text-theme-text max-w-24 flex-auto truncate mt-4 mr-1 font-semibold text-base"
data-testid="address__wallet-name"
>
My Wallet
</span>
<span
class="sc-AxhCb ccMvAG text-theme-neutral-light font-semibold text-base"
data-testid="address__wallet-address"
>
1ASuusXSW…6T9GQ3kqT
</span>
</div>
</td>
<td
class="py-1 text-sm font-bold text-center space-x-2"
>
<div
class="inline-block align-middle text-theme-warning-400"
>
<div
class="sc-AxirZ hPsuTj"
height="16"
width="16"
>
<svg>
star.svg
</svg>
</div>
</div>
<div
class="inline-block align-middle text-theme-neutral-600"
>
<div
class="sc-AxirZ hPsuTj"
height="16"
width="16"
>
<svg>
multisig.svg
</svg>
</div>
</div>
<div
class="inline-block align-middle text-theme-neutral-600"
>
<div
class="sc-AxirZ hPsuTj"
height="16"
width="16"
>
<svg>
ledger.svg
</svg>
</div>
</div>
</td>
<td
class="font-semibold text-right"
>
<div>
2,000,000 ARK
</div>
</td>
<td
class="text-right text-theme-neutral-light"
>
<div>
1,000,000 USD
</div>
</td>
<td>
<div
class="text-theme-neutral-light hover:text-theme-neutral"
>
<div
class="relative"
data-testid="dropdown__toggle"
>
<div
class="float-right outline-none cursor-pointer focus:outline-none"
>
<div
class="sc-AxirZ eEbZjj"
height="20"
width="20"
>
<svg>
settings.svg
</svg>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr
class="border-b border-theme-neutral-200"
>
Expand Down
24 changes: 0 additions & 24 deletions src/domains/dashboard/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,6 @@ export const networks = [
];

export const wallets = [
{
id: "1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT",
coinIcon: "Ark",
coinClass: "text-theme-danger-400 border-theme-danger-light",
address: "1ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT",
walletName: "My Wallet",
balance: "2,000,000 ARK",
fiat: "1,000,000 USD",
walletTypeIcons: ["Star", "Multisig", "Ledger"],
actions: [
{
label: "Action 1",
value: "1",
},
{
label: "Action 2",
value: "2",
},
{
label: "Action 3",
value: "3",
},
],
},
{
id: "2ASuusXSW9kfWnicScSgUTjttP6T9GQ3kqT",
coinIcon: "Ethereum",
Expand Down