Added key attr to Tabs to remove React warning

This commit is contained in:
w3irdrobot 2023-03-10 13:54:16 -05:00
parent 1357b7a903
commit 5e0c762058
Signed by: w3irdrobot
GPG Key ID: 3E6DBBB622F3155C
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ const Tabs = ({ tabs, tab, setTab }: TabsProps) => {
return (
<div className="tabs" ref={horizontalScroll}>
{tabs.map(t => (
<TabElement tab={tab} setTab={setTab} t={t} />
<TabElement key={t.value} tab={tab} setTab={setTab} t={t} />
))}
</div>
);