diff --git a/src/index.js b/src/index.js index 198ee8d47378bd740fc9a2891cc6945447442b2a..2383019035144bc82277e15baa01b034f6244754 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,16 @@ import "./assets/stylesheets/index.scss"; import React from "react"; import ReactDOM from "react-dom"; -import HomeRoot from "./react-components/home-root"; import registerTelemetry from "./telemetry"; +import HomeRoot from "./react-components/home-root"; +import InfoDialog from "./react-components/info-dialog.js"; +import queryString from "query-string"; + +const qs = queryString.parse(location.search); registerTelemetry(); -ReactDOM.render(<HomeRoot />, document.getElementById("home-root")); + +ReactDOM.render( + <HomeRoot dialogType={qs.list_signup ? InfoDialog.dialogTypes.updates : null} />, + document.getElementById("home-root") +); diff --git a/src/react-components/home-root.js b/src/react-components/home-root.js index f930eaea721535e886cc0ddbeb9611f8644da52c..6e780474b5ecf98164f6e34cc47e6dcc9a0551ac 100644 --- a/src/react-components/home-root.js +++ b/src/react-components/home-root.js @@ -27,7 +27,8 @@ const ENVIRONMENT_URLS = [ class HomeRoot extends Component { static propTypes = { - intl: PropTypes.object + intl: PropTypes.object, + dialogType: PropTypes.symbol }; state = { @@ -39,6 +40,7 @@ class HomeRoot extends Component { componentDidMount() { this.loadEnvironments(); + this.setState({ dialogType: this.props.dialogType }); document.querySelector("#background-video").playbackRate = 0.75; }