chore(v2): fix code style (revert previous changes)

This commit is contained in:
Alexey Pyltsyn 2020-04-05 17:38:12 +03:00
parent 1480a7eb80
commit 1f00d15c74
143 changed files with 457 additions and 458 deletions

View file

@ -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>