Added key attr to Tabs to remove React warning #424

Merged
w3irdrobot merged 1 commits from key-on-tabs into main 2023-03-10 20:52:02 +00:00
Showing only changes of commit 5e0c762058 - Show all commits

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>
);