mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 00:56:00 +07:00
build: updated typescript to 3.5.2 (#91)
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
c667bea33b
commit
6afc2c0e54
@@ -71,7 +71,6 @@ describe('App', () => {
|
||||
await handleDoLogin('sam', '1234');
|
||||
const result = {
|
||||
username: 'sam',
|
||||
token: 'TEST_TOKEN',
|
||||
};
|
||||
expect(wrapper.state('isUserLoggedIn')).toBeTruthy();
|
||||
expect(wrapper.state('showLoginModal')).toBeFalsy();
|
||||
|
||||
@@ -86,7 +86,7 @@ export default class App extends Component<{}, AppStateInterface> {
|
||||
this.handleLogout();
|
||||
} else {
|
||||
this.setState({
|
||||
user: { username, token },
|
||||
user: { username },
|
||||
isUserLoggedIn: true,
|
||||
});
|
||||
}
|
||||
@@ -153,7 +153,6 @@ export default class App extends Component<{}, AppStateInterface> {
|
||||
this.setState({
|
||||
user: {
|
||||
username,
|
||||
token,
|
||||
},
|
||||
isUserLoggedIn: true, // close login modal after successful login
|
||||
showLoginModal: false, // set isUserLoggedIn to true
|
||||
|
||||
Reference in New Issue
Block a user