Page MenuHomePhabricator

D3194.diff
No OneTemporary

D3194.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, 7:29 PM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495179
Default Alt Text
D3194.diff (1 KB)

Event Timeline