diff options
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="#" |