diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-15 18:19:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 18:19:56 +0300 |
commit | b860685d212200b5a46b7fea066306b851bf6e26 (patch) | |
tree | 18d27607f93a731d54d7a5fb8a3a681ddbf1673b /src/pages/AuthPage/AuthPage.tsx | |
parent | 185ab6f4025ff41313b12efb8cff49009c1af85e (diff) | |
parent | dd297844bd602625804e0ddb0706e737ab655334 (diff) | |
download | which-ui-b860685d212200b5a46b7fea066306b851bf6e26.tar.gz |
Merge pull request #37 from ilyayudovin/token
Get access token
Diffstat (limited to 'src/pages/AuthPage/AuthPage.tsx')
-rw-r--r-- | src/pages/AuthPage/AuthPage.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pages/AuthPage/AuthPage.tsx b/src/pages/AuthPage/AuthPage.tsx index 82d468d..72733f0 100644 --- a/src/pages/AuthPage/AuthPage.tsx +++ b/src/pages/AuthPage/AuthPage.tsx @@ -1,14 +1,12 @@ import React from 'react'; -import { User } from '../../types'; import SignInForm from './SignInForm'; interface PropTypes { - setUser: (newUser: User | undefined) => void; - navigate: (prefix: string, id: string) => void; + logIn: (name: string, password: string) => Promise<boolean>; } -const AuthPage: React.FC<PropTypes> = ({ setUser, navigate }) => { - return <SignInForm setUser={setUser} navigate={navigate} />; +const AuthPage: React.FC<PropTypes> = ({ logIn }) => { + return <SignInForm logIn={logIn} />; }; export default AuthPage; |