Skip to content

Commit

Permalink
fix card tabs demo
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 29, 2018
1 parent af03ae6 commit 42efc29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions components/card/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
/>
<div
aria-disabled="false"
aria-selected="false"
class=" ant-tabs-tab"
aria-selected="true"
class="ant-tabs-tab-active ant-tabs-tab"
role="tab"
>
tab1
Expand All @@ -733,11 +733,11 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
</div>
<div
class="ant-tabs-content ant-tabs-content-animated"
style="display:none"
style="margin-left:0%"
>
<div
aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel"
/>
<div
Expand Down
5 changes: 2 additions & 3 deletions components/card/demo/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class TabsCard extends React.Component {
title="Card title"
extra={<a href="#">More</a>}
tabList={tabList}
activeTabKey={this.state.key}
onTabChange={(key) => { this.onTabChange(key, 'key'); }}
>
{contentList[this.state.key]}
Expand All @@ -83,7 +84,5 @@ class TabsCard extends React.Component {
}
}

ReactDOM.render(
<TabsCard />,
mountNode);
ReactDOM.render(<TabsCard />, mountNode);
````

0 comments on commit 42efc29

Please sign in to comment.