diff --git a/src/components/Buttons/IconButton/myIconButton.stories.tsx b/src/components/Buttons/IconButton/myIconButton.stories.tsx index d9cf79f..31c0f84 100644 --- a/src/components/Buttons/IconButton/myIconButton.stories.tsx +++ b/src/components/Buttons/IconButton/myIconButton.stories.tsx @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from "@storybook/react"; import { fn } from "@storybook/test"; -import IconButton from "./iconbutton"; +import IconButton from "./myIconButton"; import Share from "@mui/icons-material/Share"; import { Icon } from "@mui/material"; import CloudDownload from "@mui/icons-material/CloudDownload"; diff --git a/src/components/Buttons/IconButton/myIconButton.tsx b/src/components/Buttons/IconButton/myIconButton.tsx index e1480b1..20f61e6 100644 --- a/src/components/Buttons/IconButton/myIconButton.tsx +++ b/src/components/Buttons/IconButton/myIconButton.tsx @@ -32,7 +32,7 @@ interface IconButtonProps /** * IconButton component props */ -export default function MyIconButton(props: Readonly) { +export default function myIconButton(props: Readonly) { const { gap, size, @@ -72,6 +72,7 @@ export default function MyIconButton(props: Readonly) { aria-label={props.ariaLabel} style={{ textAlign: textAlign }} data-cy={props.datacy} + children={props.children} sx={{ display: "flex", outline: "none", @@ -92,8 +93,6 @@ export default function MyIconButton(props: Readonly) { cursor: "pointer", }, }} - > - {children} - + > ); } diff --git a/src/components/Menu/MuiMenu/mydropdown.stories.tsx b/src/components/Menu/MuiMenu/mydropdown.stories.tsx index a81a2cf..790401a 100644 --- a/src/components/Menu/MuiMenu/mydropdown.stories.tsx +++ b/src/components/Menu/MuiMenu/mydropdown.stories.tsx @@ -1,6 +1,6 @@ import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; -import MyDropdown from "./mydropdown"; +import MyDropdown from "./myDropdown"; import { colors } from "../../../theme"; import IconButton from "@mui/material/IconButton"; import MenuRounded from "@mui/icons-material/MenuRounded"; diff --git a/src/components/Menu/MuiMenu/mydropdown.tsx b/src/components/Menu/MuiMenu/mydropdown.tsx index a675973..4d0ba92 100644 --- a/src/components/Menu/MuiMenu/mydropdown.tsx +++ b/src/components/Menu/MuiMenu/mydropdown.tsx @@ -118,7 +118,7 @@ interface DropdownProps extends MuiMenuProps { }; } -export default function myDropdown(props: Readonly) { +export default function MyDropdown(props: Readonly) { const { id, anchorElement, diff --git a/src/components/Tables/MuiTables/index.ts b/src/components/Tables/MuiTables/index.ts index fd71962..a182985 100644 --- a/src/components/Tables/MuiTables/index.ts +++ b/src/components/Tables/MuiTables/index.ts @@ -1 +1 @@ -export { default as MyTable } from "./tables"; +export { default as MyTable } from "./myTable"; diff --git a/src/components/Tables/MuiTables/myTable.tsx b/src/components/Tables/MuiTables/myTable.tsx index 762c9e5..644a7f5 100644 --- a/src/components/Tables/MuiTables/myTable.tsx +++ b/src/components/Tables/MuiTables/myTable.tsx @@ -76,7 +76,7 @@ interface TableProps } // Table component -export default function myTable({ +export default function MyTable({ data, headers, rowHeight = 50, diff --git a/src/components/Tables/TabulatorTables/index.ts b/src/components/Tables/TabulatorTables/index.ts index 4c35e44..851492a 100644 --- a/src/components/Tables/TabulatorTables/index.ts +++ b/src/components/Tables/TabulatorTables/index.ts @@ -1 +1 @@ -export { default as TabulatorTable } from "./tabulatorTables"; +export { default as TabulatorTable } from "./myTabulatorTable"; diff --git a/src/components/menu/MuiMenu/index.ts b/src/components/menu/MuiMenu/index.ts index 4d5f7c1..52a2e9d 100644 --- a/src/components/menu/MuiMenu/index.ts +++ b/src/components/menu/MuiMenu/index.ts @@ -1 +1 @@ -export { default as MyDropdown } from "./mydropdown"; +export { default as MyDropdown } from "./myDropdown";