fix(ui): minor bugs
This commit is contained in:
parent
3031569c07
commit
042571193a
4 changed files with 2 additions and 10 deletions
|
|
@ -42,7 +42,7 @@ const ConnectedMenu = connectPlayer(state => ({
|
|||
showEvents: state.showEvents}), { toggleEvents })(RightMenu)
|
||||
|
||||
function WebPlayer (props) {
|
||||
const { session, toggleFullscreen, closeBottomBlock, live, fullscreen, jwt, config, showEvents } = props;
|
||||
const { session, toggleFullscreen, closeBottomBlock, live, fullscreen, jwt, config } = props;
|
||||
|
||||
const TABS = {
|
||||
EVENTS: 'Events',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ function EventSearch(props) {
|
|||
<div className='flex flex-center justify-between'>
|
||||
<span>{header}</span>
|
||||
<div
|
||||
onClick={() => { toggleEvents(); setActiveTab('')}}
|
||||
onClick={() => { setActiveTab(''); toggleEvents(); }}
|
||||
className=" flex items-center justify-center bg-white cursor-pointer"
|
||||
>
|
||||
<Icon name="close" size="18" />
|
||||
|
|
|
|||
|
|
@ -178,11 +178,6 @@ export default class EventsBlock extends React.PureComponent {
|
|||
testsAvaliable,
|
||||
session: {
|
||||
events,
|
||||
userNumericHash,
|
||||
userDisplayName,
|
||||
userId,
|
||||
revId,
|
||||
userAnonymousId
|
||||
},
|
||||
filteredEvents,
|
||||
setActiveTab,
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ export default class PlayerBlockHeader extends React.PureComponent {
|
|||
width,
|
||||
height,
|
||||
session,
|
||||
disabled,
|
||||
jiraConfig,
|
||||
fullscreen,
|
||||
metaList,
|
||||
|
|
@ -95,7 +94,6 @@ export default class PlayerBlockHeader extends React.PureComponent {
|
|||
sessionId,
|
||||
userId,
|
||||
userNumericHash,
|
||||
favorite,
|
||||
live,
|
||||
metadata,
|
||||
} = session;
|
||||
|
|
@ -105,7 +103,6 @@ export default class PlayerBlockHeader extends React.PureComponent {
|
|||
});
|
||||
|
||||
const TABS = [ this.props.tabs.EVENTS, this.props.tabs.HEATMAPS ].map(tab => ({ text: tab, key: tab }));
|
||||
console.log(showEvents, activeTab)
|
||||
return (
|
||||
<div className={ cn(stl.header, "flex justify-between", { "hidden" : fullscreen}) }>
|
||||
<div className="flex w-full items-center">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue