fix issues in tabs examples (#2405)

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
This commit is contained in:
zhengjitf 2025-06-02 01:19:14 +08:00 committed by GitHub
parent 718dc24ff5
commit 9433bff517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,7 +124,7 @@ function ExampleClientRouterWithTabs() {
return (
<Tabs aria-label="Options" selectedKey={pathname}>
<Tab key="photos" title="Photos" href="/photos">
<Tab key="/photos" title="Photos" href="/photos">
<Card>
<CardBody>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
@ -133,7 +133,7 @@ function ExampleClientRouterWithTabs() {
</CardBody>
</Card>
</Tab>
<Tab key="music" title="Music" href="/music">
<Tab key="/music" title="Music" href="/music">
<Card>
<CardBody>
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
@ -142,7 +142,7 @@ function ExampleClientRouterWithTabs() {
</CardBody>
</Card>
</Tab>
<Tab key="videos" title="Videos" href="/videos">
<Tab key="/videos" title="Videos" href="/videos">
<Card>
<CardBody>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt