diff --git a/src/components/AccountSelector/AccountSelector.stories.tsx b/src/components/AccountSelector/AccountSelector.stories.tsx
index 6ed4f028..d241e0b7 100644
--- a/src/components/AccountSelector/AccountSelector.stories.tsx
+++ b/src/components/AccountSelector/AccountSelector.stories.tsx
@@ -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 = {
@@ -15,5 +15,5 @@ const args = {
};
export const _AccountSelector = {
- render: () => ,
+ render: () => ,
};
diff --git a/src/components/AccountSelector/AccountSelector.test.tsx b/src/components/AccountSelector/AccountSelector.test.tsx
index 411396e1..eed936e9 100644
--- a/src/components/AccountSelector/AccountSelector.test.tsx
+++ b/src/components/AccountSelector/AccountSelector.test.tsx
@@ -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", () => {
@@ -10,7 +10,7 @@ describe("Components | Buttons | Account Selector", () => {
icon: ,
amount: "0,000.00",
};
- render();
+ render();
let accountSelector = screen.getByTestId("account-selector-button");
@@ -25,7 +25,7 @@ describe("Components | Buttons | Account Selector", () => {
icon: ,
amount: "0,000.00",
};
- render();
+ render();
let accountSelector = screen.getByTestId("account-selector-button");
diff --git a/src/components/AccountSelector/AccountSelector.tsx b/src/components/AccountSelector/AccountSelector.tsx
index 0d3ba5b7..9954c7be 100644
--- a/src/components/AccountSelector/AccountSelector.tsx
+++ b/src/components/AccountSelector/AccountSelector.tsx
@@ -8,7 +8,7 @@ export interface AccountSelectorProps extends ComponentPropsWithoutRef<"div"> {
children?: ReactNode;
}
-export function AccountSelectorButton(props: AccountSelectorProps) {
+export function AccountSelector(props: AccountSelectorProps) {
let { avatar, accountName, icon, amount, children, ...rest } = props;
const accountSelectorClass = "flex flex-row items-center justify-between";