File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import { GithubFilled } from "@ant-design/icons" ;
3- import { Alert , Card , notification } from "antd" ;
3+ import { Alert , Card } from "antd" ;
4+ import { alert } from "shared/helpers" ;
45// !!! FIXME: loop imports
56import { useTitle } from "pages/helpers" ;
67import { authorizeGithub } from "../firebase" ;
@@ -21,14 +22,12 @@ import "./index.scss";
2122const AuthPage = ( ) => {
2223 useTitle ( "Sign in to Github Client" ) ;
2324 const { login } = useAuth ( ) ;
24- const showError = ( message : string ) =>
25- notification . error ( { message : "Authorization error" , description : message , top : 72 } ) ;
2625
2726 // TODO: add ability to specify redirect url
2827 const authorize = ( ) => {
2928 authorizeGithub ( )
3029 . then ( login )
31- . catch ( ( err : Error ) => showError ( err . message ) ) ;
30+ . catch ( ( err : Error ) => alert . error ( "Authorization error" , err . message ) ) ;
3231 } ;
3332
3433 return (
You can’t perform that action at this time.
0 commit comments