Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
- add forgot password link #1878
Browse files Browse the repository at this point in the history
  • Loading branch information
siemiatj committed Aug 7, 2018
1 parent 80806b0 commit 0435087
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -981,10 +981,15 @@ td.pulse-off input {
.mb-2 {
margin-bottom: 1.5rem !important;
}
}

.login-form > div {
position: relative;
.forgot-password-link {
cursor: pointer;
color: $brand-link-color !important;

&&:hover {
color: $brand-color-primary !important;
}
}
}

.filter-btn-wrapper {
Expand Down
12 changes: 12 additions & 0 deletions src/components/app/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ class LoginForm extends Component {
});
};

handleForgotPassword = () => {
console.log('clicked')
}

openDropdown = () => {
this.setState({
dropdownToggled: true,
Expand Down Expand Up @@ -257,6 +261,14 @@ class LoginForm extends Component {
: counterpart.translate('login.callToAction')}
</button>
</div>
<div className="mt-2">
<a
className="forgot-password-link"
onClick={this.handleForgotPassword}
>
{counterpart.translate('login.forgotPassword.caption')}
</a>
</div>
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/containers/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Login extends Component {
}
}

// TODO: We could use current-device lib for this
userBrowser = () => {
const isChrome = !!window.chrome && !!window.chrome.webstore;

Expand Down

0 comments on commit 0435087

Please sign in to comment.