Skip to content

Commit 4563073

Browse files
committed
fix: tabs
1 parent cef37e3 commit 4563073

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/primitives/Tabs.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import type { Component, Styled, Themable } from "../../utils/types";
4141
import Group from "../extenders/Group";
4242
import Container from "../layout/Container";
4343
import EventBlocker from "./EventBlocker";
44+
import React from "react";
4445

4546
export const tabsStyles = tv(
4647
{
@@ -150,7 +151,7 @@ export default function Tabs({ look, size, to, theme, className, tabs = [], ...p
150151
const relativeUrl = tab.link.split("?")[0];
151152

152153
return (
153-
<>
154+
<React.Fragment key={`${tab.link}-${tab.label}`}>
154155
{tab.link ? (
155156
<EventBlocker key={tab.key}>
156157
<Link
@@ -175,7 +176,7 @@ export default function Tabs({ look, size, to, theme, className, tabs = [], ...p
175176
{tab.label}
176177
</button>
177178
)}
178-
</>
179+
</React.Fragment>
179180
);
180181
})}
181182
</Group>

0 commit comments

Comments
 (0)