From 598cf216840c31f3913f581e66db57a61a1e606f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 21 Apr 2020 18:01:23 +0100 Subject: [PATCH] discard propTypes. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/autocomplete/Components.tsx | 16 ---------------- .../views/settings/account/PhoneNumbers.js | 3 ++- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/autocomplete/Components.tsx b/src/autocomplete/Components.tsx index 044a090078..19a7a969d6 100644 --- a/src/autocomplete/Components.tsx +++ b/src/autocomplete/Components.tsx @@ -15,7 +15,6 @@ limitations under the License. */ import React from 'react'; -import PropTypes from 'prop-types'; import classNames from 'classnames'; /* These were earlier stateless functional components but had to be converted @@ -32,13 +31,6 @@ interface ITextualCompletionProps { } export class TextualCompletion extends React.PureComponent { - static propTypes = { - title: PropTypes.string, - subtitle: PropTypes.string, - description: PropTypes.string, - className: PropTypes.string, - }; - render() { const { title, @@ -66,14 +58,6 @@ interface IPillCompletionProps { } export class PillCompletion extends React.PureComponent { - static propTypes = { - title: PropTypes.string, - subtitle: PropTypes.string, - description: PropTypes.string, - initialComponent: PropTypes.element, - className: PropTypes.string, - }; - render() { const { title, diff --git a/src/components/views/settings/account/PhoneNumbers.js b/src/components/views/settings/account/PhoneNumbers.js index ad2dabd8ae..bc0df4bba4 100644 --- a/src/components/views/settings/account/PhoneNumbers.js +++ b/src/components/views/settings/account/PhoneNumbers.js @@ -153,7 +153,8 @@ export default class PhoneNumbers extends React.Component { const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); const phoneNumber = this.state.newPhoneNumber; - const phoneCountry = this.state.phoneCountry; + // const phoneCountry = this.state.phoneCountry; + const phoneCountry = "XK"; const task = new AddThreepid(); this.setState({verifying: true, continueDisabled: true, addTask: task});