From 81fc26b770915124b86b35b21cf664e1240718e2 Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Mon, 27 Jun 2022 20:35:53 +0200 Subject: chore: turn last setting view into typescript --- src/containers/settings/SupportScreen.js | 35 ------------------------------- src/containers/settings/SupportScreen.tsx | 16 ++++++++++++++ 2 files changed, 16 insertions(+), 35 deletions(-) delete mode 100644 src/containers/settings/SupportScreen.js create mode 100644 src/containers/settings/SupportScreen.tsx (limited to 'src/containers') diff --git a/src/containers/settings/SupportScreen.js b/src/containers/settings/SupportScreen.js deleted file mode 100644 index 142bd3a57..000000000 --- a/src/containers/settings/SupportScreen.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Component } from 'react'; -import { inject } from 'mobx-react'; -import PropTypes from 'prop-types'; - -import SupportFerdium from '../../components/settings/supportFerdium/SupportFerdiumDashboard'; -import ErrorBoundary from '../../components/util/ErrorBoundary'; -import AppStore from '../../stores/AppStore'; - -class SupportScreen extends Component { - constructor(props) { - super(props); - - this.openLink = this.openLink.bind(this); - } - - openLink(url) { - this.props.actions.app.openExternalUrl({ url }); - } - - render() { - return ( - - - - ); - } -} - -SupportScreen.propTypes = { - actions: PropTypes.shape({ - app: PropTypes.instanceOf(AppStore).isRequired, - }).isRequired, -}; - -export default inject('actions')(SupportScreen); diff --git a/src/containers/settings/SupportScreen.tsx b/src/containers/settings/SupportScreen.tsx new file mode 100644 index 000000000..c2f25ad8c --- /dev/null +++ b/src/containers/settings/SupportScreen.tsx @@ -0,0 +1,16 @@ +import { Component, ReactElement } from 'react'; + +import SupportFerdium from '../../components/settings/supportFerdium/SupportFerdiumDashboard'; +import ErrorBoundary from '../../components/util/ErrorBoundary'; + +class SupportScreen extends Component { + render(): ReactElement { + return ( + + + + ); + } +} + +export default SupportScreen; -- cgit v1.2.3-54-g00ecf