diff --git a/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTile.tsx b/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTile.tsx
index 88c2c87c8f..a2575eceda 100644
--- a/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTile.tsx
+++ b/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTile.tsx
@@ -59,7 +59,6 @@ const MultisigSignerTile: React.FC<{
return (
", () => {
- const shrinkedAddress = formatPkh(pkh);
it("renders the right icon with a shrinked address and label l for known addresses", () => {
render(
{}}
- label={label}
/>
);
expect(screen.getByTestId("contact-icon")).toBeInTheDocument();
@@ -26,11 +24,9 @@ describe("", () => {
cleanup();
render(
{}}
- label={label}
/>
);
expect(screen.getByTestId("ledger-icon")).toBeInTheDocument();
@@ -40,11 +36,9 @@ describe("", () => {
cleanup();
render(
{}}
- label={label}
/>
);
expect(screen.getByTestId("identicon")).toBeInTheDocument();
@@ -54,11 +48,9 @@ describe("", () => {
cleanup();
render(
{}}
- label={label}
/>
);
expect(screen.getByTestId("social-icon")).toBeInTheDocument();
@@ -66,14 +58,12 @@ describe("", () => {
expect(screen.getByText(label)).toBeInTheDocument();
});
- it("renders the right icon with no label for unknown addresses", () => {
+ it("renders the right icon and no label for unknown addresses", () => {
render(
{}}
- label={label}
/>
);
expect(screen.getByTestId("unknown-contact-icon")).toBeInTheDocument();
diff --git a/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.tsx b/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.tsx
index ee37488922..74157242a9 100644
--- a/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.tsx
+++ b/src/components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.tsx
@@ -6,16 +6,15 @@ import { AddressKind } from "../../../AddressTile/types";
import AccountTileIcon from "../../../AccountTile/AccountTileIcon";
export const MultisigSignerTileDisplay: React.FC<{
- pkh: string;
onClickApproveExecute: () => void;
signerState: MultisigSignerState;
isLoading?: boolean;
addressKind: Exclude;
-}> = ({ pkh, isLoading = false, addressKind, ...rest }) => {
+}> = ({ isLoading = false, addressKind, ...rest }) => {
return (
}
- leftElement={}
+ leftElement={}
rightElement={}
/>
);
diff --git a/src/components/AccountTile/AccountTileDisplay.stories.tsx b/src/components/AccountTile/AccountTileDisplay.stories.tsx
deleted file mode 100644
index 241bc22aec..0000000000
--- a/src/components/AccountTile/AccountTileDisplay.stories.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-// import React from "react";
-// import { ComponentStory, ComponentMeta } from "@storybook/react";
-// import { AccountTileDisplay } from "./AccountTileDisplay";
-// import { AccountType } from "../../types/Account";
-
-// export default {
-// title: "Umami/AccountTileDisplay",
-// component: AccountTileDisplay,
-// } as ComponentMeta;
-
-// const Template: ComponentStory = args => (
-//
-// );
-
-// export const Default = Template.bind({});
-// Default.args = {
-// label: "My super account",
-// address: "tz1UNer1ijeE9ndjzSszRduR3CzX49hoBUB3",
-// balance: "34,12 tez",
-// kind: AccountType.MNEMONIC,
-// };
-
-// export const Multisig = Template.bind({});
-// Multisig.args = {
-// label: "My super account",
-// address: "tz1UNer1ijeE9ndjzSszRduR3CzX49hoBUB3",
-// balance: "34,12 tez",
-// kind: AccountType.MULTISIG,
-// };
-
-// export const Social = Template.bind({});
-// Social.args = {
-// label: "My super account",
-// address: "tz1UNer1ijeE9ndjzSszRduR3CzX49hoBUB3",
-// balance: "34,12 tez",
-// kind: AccountType.SOCIAL,
-// };
-// export const Ledger = Template.bind({});
-// Ledger.args = {
-// label: "My super account",
-// address: "tz1UNer1ijeE9ndjzSszRduR3CzX49hoBUB3",
-// balance: "34,12 tez",
-// kind: AccountType.LEDGER,
-// };
-
-// export const Selected = Template.bind({});
-// Selected.args = {
-// ...Default.args,
-// selected: true,
-// };
diff --git a/src/components/AccountTile/AccountTileDisplay.tsx b/src/components/AccountTile/AccountTileDisplay.tsx
index c64c0c7841..40c9aad1d9 100644
--- a/src/components/AccountTile/AccountTileDisplay.tsx
+++ b/src/components/AccountTile/AccountTileDisplay.tsx
@@ -42,7 +42,10 @@ export const AccountTileBase: React.FC<
);
};
-export const LabelAndAddress: React.FC<{ label?: string; pkh: string }> = ({ label, pkh }) => {
+export const LabelAndAddress: React.FC<{ label: string | null; pkh: string }> = ({
+ label,
+ pkh,
+}) => {
return (
{label && {label}}