diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap
index 819d1a4558..bd54486f36 100644
--- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap
+++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap
@@ -728,35 +728,6 @@ Array [
add
-
-
-
-
-
-
-
{
);
}
const collapseIcon = this.hasContent(file) ?
: null;
-
const fileControls = fileControlFactory ? fileControlFactory(file, this.setCollapse) : null;
+ const sideBySideToggle =
+ file.hunks && file.hunks.length > 0 ? (
+
+
+
+ {fileControls}
+
+
+ ) : null;
+
return (
@@ -288,17 +302,7 @@ class DiffFile extends React.Component
{
{this.renderChangeTag(file)}
-
-
-
- {fileControls}
-
-
+ {sideBySideToggle}
{body}