Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Use destructuring syntax where possible #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class Login extends React.Component {
}

render() {
const email = this.props.email;
const password = this.props.password;
const { email, password } = this.props;
return (
<div className="auth-page">
<div className="container page">
Expand Down
4 changes: 1 addition & 3 deletions src/components/Register.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ class Register extends React.Component {
}

render() {
const email = this.props.email;
const password = this.props.password;
const username = this.props.username;
const { email, username, password } = this.props;

return (
<div className="auth-page">
Expand Down