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

View File

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