diff options
author | crupest <crupest@outlook.com> | 2020-06-04 00:18:50 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-04 00:18:50 +0800 |
commit | fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0 (patch) | |
tree | 787cda66f8997ba842601a261a36b6de95398675 /Timeline/ClientApp/src/user/Login.tsx | |
parent | 92e50c4a3ea250dc18c76bc8c29d86d486e63772 (diff) | |
download | timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.tar.gz timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.tar.bz2 timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.zip |
refactor(front): Make codes lint-clean!
Diffstat (limited to 'Timeline/ClientApp/src/user/Login.tsx')
-rw-r--r-- | Timeline/ClientApp/src/user/Login.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/user/Login.tsx b/Timeline/ClientApp/src/user/Login.tsx index fc9364c0..24cd58d0 100644 --- a/Timeline/ClientApp/src/user/Login.tsx +++ b/Timeline/ClientApp/src/user/Login.tsx @@ -1,6 +1,7 @@ import React, { Fragment, useState, useEffect } from 'react';
import { useHistory } from 'react-router';
import { useTranslation } from 'react-i18next';
+import { AxiosError } from 'axios';
import AppBar from '../common/AppBar';
@@ -68,7 +69,7 @@ const Login: React.FC = (_) => { history.goBack();
}
},
- (e) => {
+ (e: AxiosError | Error) => {
setProcess(false);
setError(e.message);
}
|