You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
677 B
33 lines
677 B
import React, { Component } from 'react'; |
|
|
|
import Mobile from './Mobile/Mobile'; |
|
import Code from './Code/Code'; |
|
|
|
import './Login.scss'; |
|
export default class Login extends Component { |
|
constructor(props) { |
|
super(props); |
|
this.state = { |
|
section : 0, |
|
} |
|
} |
|
setSection = (val) => { |
|
this.setState({ |
|
section : val, |
|
}) |
|
} |
|
render() { |
|
return( |
|
<div className="login d-flex flex-column"> |
|
{ |
|
this.state.section === 0 ? |
|
<Mobile setSection={this.setSection} /> : null |
|
} |
|
{ |
|
this.state.section === 1 ? |
|
<Code setSection={this.setSection}/> : null |
|
} |
|
</div> |
|
); |
|
} |
|
} |