From dd0c6babb832772cb017171476b2629ef00ee147 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 15 Jun 2020 17:27:11 +0300 Subject: feat: invalidate from on error --- src/pages/AuthPage/AuthPage.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/pages/AuthPage/AuthPage.tsx') 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; } -const AuthPage: React.FC = ({ logIn, navigate }) => { - return ; +const AuthPage: React.FC = ({ logIn }) => { + return ; }; export default AuthPage; -- cgit v1.2.3