Skip to content

Commit 4b78ff0

Browse files
committed
PerformanceVisx refactoring done and styling of the rendering feature done
> > Co-authored-by: Nkmai <[email protected]> Co-authored-by: lind-tania <[email protected]> Co-authored-by: rtviner <[email protected]> Co-authored-by: caitlinchan23 <[email protected]>  
1 parent b2c3a25 commit 4b78ff0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/app/components/PerformanceVisx.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ const PerformanceVisx = (props: BarStackProps) => {
9898
}
9999
// filter and structure incoming data for VISX
100100
const data = getPerfMetrics(snapshots, getSnapshotIds(hierarchy));
101-
101+
const colorSlider = "#ff6569"
102+
// style={{ position: 'relative' }}
102103
// if performance tab is too small it will not return VISX component
103104
return (
104-
<div style={{ position: 'relative' }}>
105-
<FormControlLabel
105+
<div className='renderTab'>
106+
<FormControlLabel style={{"margin-left":"30px", "margin-top": "20px"}}
106107
control={
107108
<Switch
108109
onChange={toggleView}
@@ -113,9 +114,9 @@ const PerformanceVisx = (props: BarStackProps) => {
113114
label="Renders"
114115
/>
115116
{/* <button onClick={toggleView}>Toggle Button</button> */}
116-
<div>
117+
<div style={{"display": "flex", "justify-content": "center"}}>
117118
{isToggled === 'frequencyCards'
118-
? <RenderingFrequency data={data.componentData}/>
119+
? <RenderingFrequency data={data.componentData}/>
119120
: <BarGraph data={data} width={width} height={height}/>
120121
}
121122
</div>

0 commit comments

Comments
 (0)