From d091cf4d008f18f860f8c94571401252c4a5f018 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 13 Jan 2018 17:44:08 +0800 Subject: [PATCH] Fix prop name typo, close #681 --- src/components/PageHeader/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index 8472aa52..57156fc1 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -60,7 +60,7 @@ export default class PageHeader extends PureComponent { const { title, logo, action, content, extraContent, breadcrumbList, tabList, className, linkElement = 'a', - activeTabKey, + tabActiveKey, } = this.props; const clsString = classNames(styles.pageHeader, className); let breadcrumb; @@ -122,15 +122,15 @@ export default class PageHeader extends PureComponent { } let tabDefaultValue; - if (activeTabKey !== undefined && tabList) { + if (tabActiveKey !== undefined && tabList) { tabDefaultValue = tabList.filter(item => item.default)[0] || tabList[0]; } const activeKeyProps = { defaultActiveKey: tabDefaultValue && tabDefaultValue.key, }; - if (activeTabKey !== undefined) { - activeKeyProps.activeKey = activeTabKey; + if (tabActiveKey !== undefined) { + activeKeyProps.activeKey = tabActiveKey; } return ( -- GitLab