From 5a28562354d56590ec87cf0a1e9358cd1a70854a Mon Sep 17 00:00:00 2001 From: Tomi M Date: Tue, 6 Oct 2015 20:02:39 -0700 Subject: PLT-445 Create About dialog --- web/react/components/about_build_modal.jsx | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 web/react/components/about_build_modal.jsx (limited to 'web/react/components/about_build_modal.jsx') diff --git a/web/react/components/about_build_modal.jsx b/web/react/components/about_build_modal.jsx new file mode 100644 index 000000000..87a58ba97 --- /dev/null +++ b/web/react/components/about_build_modal.jsx @@ -0,0 +1,60 @@ +// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. +// See License.txt for license information. + +export default class AboutBuildModal extends React.Component { + render() { + const config = global.window.config; + + return ( + + ); + } +} -- cgit v1.2.3-1-g7c22 From e7eca9a9ed990818ef0081078139a967078b8a80 Mon Sep 17 00:00:00 2001 From: Tomi M Date: Wed, 7 Oct 2015 16:25:47 -0700 Subject: Use ReactBootstrap.Modal instead. --- web/react/components/about_build_modal.jsx | 84 +++++++++++++++--------------- 1 file changed, 43 insertions(+), 41 deletions(-) (limited to 'web/react/components/about_build_modal.jsx') diff --git a/web/react/components/about_build_modal.jsx b/web/react/components/about_build_modal.jsx index 87a58ba97..d582f6bc8 100644 --- a/web/react/components/about_build_modal.jsx +++ b/web/react/components/about_build_modal.jsx @@ -1,60 +1,62 @@ // Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. +var Modal = ReactBootstrap.Modal; + export default class AboutBuildModal extends React.Component { + constructor(props) { + super(props); + this.doHide = this.doHide.bind(this); + } + + doHide() { + this.props.onModalDismissed(); + } + render() { const config = global.window.config; return ( -