Fix tab names [again]
Summary: child.hasOwnProperty -> child.props.hasOwnProperty for tabs Reviewed By: udat Differential Revision: D37751552 fbshipit-source-id: 78015bbc185387587ce3644c959596cf0a661ddf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0e11eaabb3
commit
5551cf3bb2
@@ -30,13 +30,13 @@ export function Tabs({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const tabKey =
|
const tabKey =
|
||||||
(child.hasOwnProperty('tabKey') &&
|
(child.props.hasOwnProperty('tabKey') &&
|
||||||
typeof child.props.tabKey === 'string' &&
|
typeof child.props.tabKey === 'string' &&
|
||||||
child.props.tabKey) ||
|
child.props.tabKey) ||
|
||||||
(child.hasOwnProperty('tab') &&
|
(child.props.hasOwnProperty('tab') &&
|
||||||
typeof child.props.tab === 'string' &&
|
typeof child.props.tab === 'string' &&
|
||||||
child.props.tab) ||
|
child.props.tab) ||
|
||||||
(child.hasOwnProperty('key') &&
|
(child.props.hasOwnProperty('key') &&
|
||||||
typeof child.props.key === 'string' &&
|
typeof child.props.key === 'string' &&
|
||||||
child.props.key) ||
|
child.props.key) ||
|
||||||
`tab_${idx}`;
|
`tab_${idx}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user