Page MenuHomePhabricator

D3194.id9677.diff
No OneTemporary

D3194.id9677.diff

diff --git a/web/app.react.js b/web/app.react.js
--- a/web/app.react.js
+++ b/web/app.react.js
@@ -85,11 +85,11 @@
+dispatch: Dispatch,
};
type State = {
- +currentModal: ?React.Node,
+ +modal: ?React.Node,
};
class App extends React.PureComponent<Props, State> {
state: State = {
- currentModal: null,
+ modal: null,
};
componentDidMount() {
@@ -137,10 +137,7 @@
content = this.renderMainContent();
} else {
content = (
- <Splash
- setModal={this.setModal}
- currentModal={this.state.currentModal}
- />
+ <Splash setModal={this.setModal} currentModal={this.state.modal} />
);
}
return (
@@ -148,7 +145,7 @@
<FocusHandler />
<VisibilityHandler />
{content}
- {this.state.currentModal}
+ {this.state.modal}
</DndProvider>
);
}
@@ -191,7 +188,7 @@
}
setModal = (modal: ?React.Node) => {
- this.setState({ currentModal: modal });
+ this.setState({ modal });
};
clearModal() {

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 9:59 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495179
Default Alt Text
D3194.id9677.diff (1 KB)

Event Timeline