mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
Fix the tab names in the playground (#9811)
* Rename the `name` prop to `label` on TabItem in DemosLite * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
6505d4289a
commit
7b6bd31881
5
.changeset/legal-months-speak.md
Normal file
5
.changeset/legal-months-speak.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"website": minor
|
||||
---
|
||||
|
||||
feat:Fix the tab names in the playground
|
@ -449,14 +449,14 @@
|
||||
|
||||
const TABS: Tab[] = [
|
||||
{
|
||||
name: "Code",
|
||||
label: "Code",
|
||||
id: "code",
|
||||
visible: true,
|
||||
interactive: true,
|
||||
elem_id: "code"
|
||||
},
|
||||
{
|
||||
name: "Packages",
|
||||
label: "Packages",
|
||||
id: "packages",
|
||||
visible: true,
|
||||
interactive: true,
|
||||
@ -546,7 +546,7 @@
|
||||
>
|
||||
<TabItem
|
||||
id={TABS[0].id}
|
||||
name={TABS[0].name}
|
||||
label={TABS[0].label}
|
||||
visible={TABS[0].visible}
|
||||
interactive={TABS[0].interactive}
|
||||
elem_classes={["editor-tabitem"]}
|
||||
@ -564,7 +564,7 @@
|
||||
</TabItem>
|
||||
<TabItem
|
||||
id={TABS[1].id}
|
||||
name={TABS[1].name}
|
||||
label={TABS[1].label}
|
||||
visible={TABS[1].visible}
|
||||
interactive={TABS[1].interactive}
|
||||
elem_classes={["editor-tabitem"]}
|
||||
|
Loading…
Reference in New Issue
Block a user