Skip to content

Commit

Permalink
we fix the component name
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed May 10, 2023
1 parent 7354161 commit a191839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/AccountSelector/AccountSelector.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FiUser } from "react-icons/fi";
import { MassaToken } from "../Icons/Svg/SvgComponent/MassaToken";
import { AccountSelectorButton } from "./AccountSelector";
import { AccountSelector } from "./AccountSelector";

export default {
title: "Components/Account Selector",
component: AccountSelectorButton,
component: AccountSelector,
};

const args = {
Expand All @@ -15,5 +15,5 @@ const args = {
};

export const _AccountSelector = {
render: () => <AccountSelectorButton {...args} />,
render: () => <AccountSelector {...args} />,
};
6 changes: 3 additions & 3 deletions src/components/AccountSelector/AccountSelector.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, fireEvent, screen } from "@testing-library/react";
import { AccountSelectorButton } from "./AccountSelector";
import { AccountSelector } from "./AccountSelector";
import { FiUser, FiAlertTriangle } from "react-icons/fi";

describe("Components | Buttons | Account Selector", () => {
Expand All @@ -10,7 +10,7 @@ describe("Components | Buttons | Account Selector", () => {
icon: <FiAlertTriangle />,
amount: "0,000.00",
};
render(<AccountSelectorButton {...args} />);
render(<AccountSelector {...args} />);

let accountSelector = screen.getByTestId("account-selector-button");

Expand All @@ -25,7 +25,7 @@ describe("Components | Buttons | Account Selector", () => {
icon: <FiAlertTriangle />,
amount: "0,000.00",
};
render(<AccountSelectorButton onClick={onClickMock} {...args} />);
render(<AccountSelector onClick={onClickMock} {...args} />);

let accountSelector = screen.getByTestId("account-selector-button");

Expand Down

0 comments on commit a191839

Please sign in to comment.