From 2bcad655fca844d06390e6431073a46091988f39 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 27 Aug 2018 15:32:09 +0300 Subject: moar /settings updates --- vnext/src/components/Settings.js | 67 ++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 23 deletions(-) (limited to 'vnext') diff --git a/vnext/src/components/Settings.js b/vnext/src/components/Settings.js index d3eced63..2a24e35c 100644 --- a/vnext/src/components/Settings.js +++ b/vnext/src/components/Settings.js @@ -29,7 +29,7 @@ export default class Settings extends React.Component { } passwordChanged = (event) => { this.setState({ - settings: { password : event.target.value } + settings: { password: event.target.value } }); } onSubmitPassword = (event) => { @@ -38,6 +38,29 @@ export default class Settings extends React.Component { } console.log('password update'); } + emailChanged = (event) => { + this.setState({ + me: { activeEmail: event.target.value } + }); + } + disableTelegram = () => { + console.log('telegram disable'); + } + disableFacebook = (event) => { + if (event.preventDefault) { + event.preventDefault(); + } + console.log('facebook disable'); + } + enableFacebook = (event) => { + if (event.preventDefault) { + event.preventDefault(); + } + console.log('facebook enable'); + } + disableTwitter = () => { + console.log('twitter disable'); + } render() { const { me } = this.state; return ( @@ -45,29 +68,28 @@ export default class Settings extends React.Component {