aboutsummaryrefslogtreecommitdiff
path: root/src/pages/AuthPage/AuthPage.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-15 17:27:11 +0300
committereug-vs <eug-vs@keemail.me>2020-06-15 17:27:11 +0300
commitdd0c6babb832772cb017171476b2629ef00ee147 (patch)
treea4bc64592dd16ae2705a56dc4c71ac8f55808b55 /src/pages/AuthPage/AuthPage.tsx
parentd547ea8b3acffa30fa44e0715661490d066bf580 (diff)
downloadwhich-ui-dd0c6babb832772cb017171476b2629ef00ee147.tar.gz
feat: invalidate from on error
Diffstat (limited to 'src/pages/AuthPage/AuthPage.tsx')
-rw-r--r--src/pages/AuthPage/AuthPage.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pages/AuthPage/AuthPage.tsx b/src/pages/AuthPage/AuthPage.tsx
index b694c5d..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 {
- logIn: (name: string, password: string) => void;
- navigate: (prefix: string, id: string) => void;
+ logIn: (name: string, password: string) => Promise<boolean>;
}
-const AuthPage: React.FC<PropTypes> = ({ logIn, navigate }) => {
- return <SignInForm logIn={logIn} navigate={navigate} />;
+const AuthPage: React.FC<PropTypes> = ({ logIn }) => {
+ return <SignInForm logIn={logIn} />;
};
export default AuthPage;