aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/components/Settings.js10
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 &&