* feat(ui): some design mocks * fix(ui): some fixes for stuff * feat(ui): test overview page layout * feat(ui): fix placeholder * feat(ui): answers table modal * feat(tracker): user testing module in tracker * fix(tracker): add "thank you" section, refactor file to make it readable * fix(tracker): naming * fix(tracker): naming * fix(tracker): some refactorings for user testing modd * feat(tracker): export assist vers to window obj, add recorder manager for user testing * feat(tracker): refactor UT file * feat(tracker): add recording delay for UT module * feat(tracker): dnd for UT widget * fix(tracker): changelog for assist * fix(tracker): cover ut with tests * fix(tracker): update package scripts to include testing before releasing packages * fix(UI): fix uxt routes * feat(ui): uxt store * feat(ui): uxt store connection * feat(ui): some api connections for utx * feat(ui): some api connections for utx * feat(ui): some api connections for utx * feat(ui): api connections * feat(ui): api connections * feat(ui): api connections * feat(ui): api connections * feat(ui): utx components for replay * feat(ui): utx components for replay * feat(ui): make events shared * feat(ui): final fixes
30 lines
764 B
TypeScript
30 lines
764 B
TypeScript
import React from 'react'
|
|
import EventsBlock from '../Session_/EventsBlock';
|
|
import PageInsightsPanel from '../Session_/PageInsightsPanel/PageInsightsPanel'
|
|
|
|
import cn from 'classnames';
|
|
import stl from './rightblock.module.css';
|
|
|
|
function RightBlock(props: any) {
|
|
const { activeTab } = props;
|
|
|
|
if (activeTab === 'EVENTS') {
|
|
return (
|
|
<div className={cn("flex flex-col bg-white border-l", stl.panel)}>
|
|
<EventsBlock
|
|
setActiveTab={props.setActiveTab}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
if (activeTab === 'HEATMAPS') {
|
|
return (
|
|
<div className={cn("flex flex-col bg-white border-l", stl.panel)}>
|
|
<PageInsightsPanel setActiveTab={props.setActiveTab} />
|
|
</div>
|
|
)
|
|
}
|
|
return null
|
|
}
|
|
|
|
export default RightBlock
|