diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-24 00:52:26 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-24 00:57:29 +0300 |
commit | fbdaa40e7ce585b65038835c05a283cec6f28d0e (patch) | |
tree | f7cf1593109a21841a93d237b1e28cb7735637d0 /src/index.tsx | |
parent | 8930046d41841cba6cf368076b86e26088807848 (diff) | |
download | which-ui-fbdaa40e7ce585b65038835c05a283cec6f28d0e.tar.gz |
chore: migrate to which-types@1.3.1
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx index 1777e90..4e6779a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -13,7 +13,8 @@ import Header from './components/Header/Header'; import ProfilePage from './pages/ProfilePage/ProfilePage'; import FeedPage from './pages/FeedPage/FeedPage'; import AuthPage from './pages/AuthPage/AuthPage'; -import { User, Page } from './types'; +import { Page } from './types'; +import { User } from 'which-types'; import { get, post } from './requests'; import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow'; @@ -53,10 +54,10 @@ const App: React.FC = () => { } }; - const logIn = (name: string, password: string): Promise<boolean> => { + const logIn = (username: string, password: string): Promise<boolean> => { return post('/authentication', { strategy: 'local', - name, + username, password }).then(response => { const me = response.data.user; |