diff options
author | 2018-07-06 01:32:43 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 7f25b0f261b5a5fc2696054004fb24673375b91b (patch) | |
tree | 38ee591e176b4799e39eff7a16f1950e017e7bb4 /vnext/src/components/Settings.js | |
parent | 88732ba8c06c23a93f7248b6eabc182f38be3d33 (diff) |
Proptypes & eslint
Diffstat (limited to 'vnext/src/components/Settings.js')
-rw-r--r-- | vnext/src/components/Settings.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/components/Settings.js b/vnext/src/components/Settings.js index 95f7e60d..a97d4be9 100644 --- a/vnext/src/components/Settings.js +++ b/vnext/src/components/Settings.js @@ -2,12 +2,12 @@ import React from 'react'; export default class Settings extends React.Component { constructor(props) { - super(props) + super(props); this.state = { settings: {}, userinfo: {}, facebook: {} - } + }; } render() { const { settings, userinfo, facebook } = this.state; @@ -60,7 +60,7 @@ export default class Settings extends React.Component { }}>Telegram</legend> {settings.telegramName ? ( <form action="/settings" method="post"> - <div>Telegram: <b>{{ telegram_name }}</b> — + <div>Telegram: <b> telegram_name </b> — <input type="hidden" name="page" value="telegram-del" /> <input type="submit" value=" Disable " /> </div> @@ -82,13 +82,13 @@ export default class Settings extends React.Component { <p> { settings.jids.map(jid => - <React.Fragment> + <React.Fragment key="jid"> <label><input type="radio" name="delete" value={jid} />${jid}</label><br /> </React.Fragment> ) } {settings.auths.map(auth => - <React.Fragment> + <React.Fragment key={auth.account}> <label><input type="radio" name="delete" value={auth.account} />{auth.account}</label> — <a href="#" |