Skip to content

Commit

Permalink
refactor(editor): remove extra view component (#2267)
Browse files Browse the repository at this point in the history
Removes an unnecessary `View` component.
  • Loading branch information
ericluap authored Aug 14, 2020
1 parent 8e3c4de commit 749848d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/UI/EditorView.re
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,15 @@ let make =
let showTabs = editorShowTabs && (!state.zenMode || !hideZenModeTabs);

<View onFileDropped style={Styles.container(theme)}>
<View style={Styles.container(theme)}>
<Feature_Layout.View
uiFont={state.uiFont}
theme
isZenMode={state.zenMode}
showTabs
model={state.layout}
config={Feature_Configuration.resolver(state.config)}
dispatch={msg => dispatch(Actions.Layout(msg))}>
...(module ContentProvider)
</Feature_Layout.View>
</View>
<Feature_Layout.View
uiFont={state.uiFont}
theme
isZenMode={state.zenMode}
showTabs
model={state.layout}
config={Feature_Configuration.resolver(state.config)}
dispatch={msg => dispatch(Actions.Layout(msg))}>
...(module ContentProvider)
</Feature_Layout.View>
</View>;
};

0 comments on commit 749848d

Please sign in to comment.