change(ui) - close right panel on clicking the same tab
This commit is contained in:
parent
a813a00b6d
commit
a75bcd1af2
1 changed files with 7 additions and 2 deletions
|
|
@ -151,8 +151,13 @@ export default class PlayerBlockHeader extends React.PureComponent {
|
|||
tabs={TABS}
|
||||
active={activeTab}
|
||||
onClick={(tab) => {
|
||||
setActiveTab(tab);
|
||||
!showEvents && toggleEvents(true);
|
||||
if (activeTab === tab) {
|
||||
setActiveTab('');
|
||||
toggleEvents();
|
||||
} else {
|
||||
setActiveTab(tab);
|
||||
!showEvents && toggleEvents(true);
|
||||
}
|
||||
}}
|
||||
border={false}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue