Skip to content

Commit

Permalink
Merge pull request #26 from 4xdk/addToastToLogin
Browse files Browse the repository at this point in the history
Add toast to login
  • Loading branch information
elimisteve authored Jan 26, 2019
2 parents 001bb75 + feb873f commit 6a28524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/NavBar/LogIn/LogIn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { toast } from 'react-toastify';
import { userLoginSuccess } from '../../../actions';
import '../SignUpLogInModal.css';
import './LogIn.css';
Expand Down Expand Up @@ -52,6 +53,7 @@ class LogIn extends Component {

// TODO: Actually log user in, don't just fake it
userLoginSuccess({username: this.username});
toast.success(`Welcome back, ${this.username}!`);

this.usernameRemembered = '';
this.username = '';
Expand Down

0 comments on commit 6a28524

Please sign in to comment.