diff options
author | Vitaly Takmazov | 2019-02-01 12:14:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | 48087828920cc60ce82d1957d7943d9d709822a8 (patch) | |
tree | 8431e06120244de4c2b0051c7bc2f1ea58d7d9af /vnext/src | |
parent | aec4089d44cf311d6502fb4b28cee53e2d7d2d75 (diff) |
Settings cleanup
Diffstat (limited to 'vnext/src')
-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 94052b2e..9c15f562 100644 --- a/vnext/src/components/Settings.js +++ b/vnext/src/components/Settings.js @@ -151,7 +151,7 @@ export default class Settings extends React.Component { </p> { me.jids && me.jids.length > 1 && - <p><input type="hidden" name="page" value="jid-del" /><input type="submit" value=" Delete " /></p> + <p><Button onClick={this.deleteJid}>Delete</Button></p> } <p>To add new jabber account: send any text message to <a href="xmpp:juick@juick.com?message;body=login">juick@juick.com</a> </p> @@ -177,14 +177,14 @@ export default class Settings extends React.Component { <input type="radio" name="account" value={email} />{email} </label> <br /> - {me.emails.length > 1 && - <p><input type="hidden" name="page" value="email-del" /> - <input type="submit" value=" Delete " /></p> - } </React.Fragment> ) : '-' } </p> + { + me.emails && me.emails.length > 1 && + <Button onClick={this.deleteEmail}>Delete</Button> + } </form> { me.emails && |