Skip to content

Commit e4bfb48

Browse files
committed
Fix eslint in TableActionDropdown
1 parent 39feee3 commit e4bfb48

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/shared/TableActionDropdown.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const containerAction = React.createRef<HTMLDivElement>();
1616
*/
1717
const TableActionDropdown = ({
1818
actions,
19-
disabled=true,
19+
disabled = true,
2020
}: {
2121
actions: React.ComponentProps<typeof Action>[]
2222
disabled: boolean
@@ -59,11 +59,12 @@ const TableActionDropdown = ({
5959
{/* show dropdown if actions is clicked*/}
6060
{displayActionMenu && (
6161
<ul className="dropdown-ul">
62-
{actions.map((action =>
62+
{actions.map((action, key) =>
6363
<Action
64+
key={key}
6465
{...action}
6566
/>
66-
))}
67+
)}
6768
</ul>
6869
)}
6970
</div>

0 commit comments

Comments
 (0)