Skip to content

Commit 720c899

Browse files
committed
fix: tabs prop
1 parent 4318902 commit 720c899

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/ui-styles",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"type": "module",
55
"main": "dist/main.js",
66
"types": "dist/main.d.ts",

src/ui/Tabs.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type TabsProps = {
3434
children: (args: { selectedTab: Tab }) => React.ReactNode
3535
tabs: Tab[]
3636
selectedTab?: string
37-
navigateToTab: React.Dispatch<React.SetStateAction<string>>
37+
navigateToTab: (tab: string) => void
3838
tabsCssStyle?: Interpolation<Theme>
3939
tabCssStyle?: Interpolation<Theme>
4040
enableMobileLayout?: boolean
@@ -57,7 +57,7 @@ export const Tabs = ({
5757
const [showTooltip, setShowTooltip] = useState(false)
5858

5959
return (
60-
<Column css={tabContainerStyle}>
60+
<Column cssStyle={tabContainerStyle}>
6161
<Row cssStyle={[tabsStyle({ enableMobileLayout }), tabsCssStyle]}>
6262
{tabs.map((tab) => (
6363
<div

0 commit comments

Comments
 (0)