Skip to content

Commit

Permalink
Show toast after login
Browse files Browse the repository at this point in the history
  • Loading branch information
4xdk committed Jan 26, 2019
1 parent 0881769 commit 614934e
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 comment has been minimized.

Copy link
@elimisteve

elimisteve Jan 26, 2019

Member

Comma after "back", please, then this looks perfect 👍


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

0 comments on commit 614934e

Please sign in to comment.