mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -32,7 +32,7 @@ function Tabs(props) {
|
|||
}
|
||||
}
|
||||
|
||||
const changeSelectedValue = newValue => {
|
||||
const changeSelectedValue = (newValue) => {
|
||||
setSelectedValue(newValue);
|
||||
if (groupId != null) {
|
||||
setTabGroupChoices(groupId, newValue);
|
||||
|
@ -91,8 +91,8 @@ function Tabs(props) {
|
|||
'tab-item--active': selectedValue === value,
|
||||
})}
|
||||
key={value}
|
||||
ref={tabControl => tabRefs.push(tabControl)}
|
||||
onKeyDown={event => handleKeydown(tabRefs, event.target, event)}
|
||||
ref={(tabControl) => tabRefs.push(tabControl)}
|
||||
onKeyDown={(event) => handleKeydown(tabRefs, event.target, event)}
|
||||
onFocus={() => changeSelectedValue(value)}
|
||||
onClick={() => changeSelectedValue(value)}>
|
||||
{label}
|
||||
|
@ -102,7 +102,7 @@ function Tabs(props) {
|
|||
<div role="tabpanel" className="margin-vert--md">
|
||||
{
|
||||
Children.toArray(children).filter(
|
||||
child => child.props.value === selectedValue,
|
||||
(child) => child.props.value === selectedValue,
|
||||
)[0]
|
||||
}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue