Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 35c1f2a

Browse files
author
Brian Vaughn
committed
Hide snapshot selector when viewing Interactions tab
1 parent 763560e commit 35c1f2a

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

plugins/Profiler/views/ProfilerTabToolbar.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,23 @@ const ProfilerTabToolbar = ({
162162
theme={theme}
163163
/>
164164

165-
<HRule theme={theme} />
165+
{selectedChartType !== 'interactions' && (
166+
<Fragment>
167+
<HRule theme={theme} />
166168

167-
<SnapshotSelector
168-
commitThreshold={commitThreshold}
169-
hideCommitsBelowThreshold={hideCommitsBelowThreshold}
170-
isInspectingSelectedFiber={isInspectingSelectedFiber}
171-
selectedFiberID={selectedFiberID}
172-
selectedSnapshot={selectedSnapshot}
173-
selectSnapshot={selectSnapshot}
174-
snapshotIndex={snapshotIndex}
175-
snapshots={snapshots}
176-
theme={theme}
177-
/>
169+
<SnapshotSelector
170+
commitThreshold={commitThreshold}
171+
hideCommitsBelowThreshold={hideCommitsBelowThreshold}
172+
isInspectingSelectedFiber={isInspectingSelectedFiber}
173+
selectedFiberID={selectedFiberID}
174+
selectedSnapshot={selectedSnapshot}
175+
selectSnapshot={selectSnapshot}
176+
snapshotIndex={snapshotIndex}
177+
snapshots={snapshots}
178+
theme={theme}
179+
/>
180+
</Fragment>
181+
)}
178182
</Fragment>
179183
)}
180184
</div>

0 commit comments

Comments
 (0)