From ebb457f58da5363f29f3b019411b504420602839 Mon Sep 17 00:00:00 2001 From: MRmlik12 Date: Tue, 15 Jun 2021 23:16:31 +0200 Subject: [PATCH] Fix linter errors --- frontend/src/api/login.ts | 5 +++-- frontend/src/props/LoginForm.ts | 6 ------ 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 frontend/src/props/LoginForm.ts diff --git a/frontend/src/api/login.ts b/frontend/src/api/login.ts index 09760ff..62766e0 100644 --- a/frontend/src/api/login.ts +++ b/frontend/src/api/login.ts @@ -2,7 +2,8 @@ import axios, { AxiosResponse } from 'axios'; import Cookies from 'universal-cookie'; export default { - login: async (email: string, password: string, symbol: string, diaryUrl: string): Promise => { + login: async (email: string, password: string, symbol: string, diaryUrl: string) + : Promise => { const cookies = new Cookies(); const response = await axios({ method: 'POST', @@ -15,7 +16,7 @@ export default { loginName: email, Password: password, Symbol: symbol, - diaryUrl: diaryUrl, + diaryUrl, }, }); diff --git a/frontend/src/props/LoginForm.ts b/frontend/src/props/LoginForm.ts deleted file mode 100644 index 9c13c12..0000000 --- a/frontend/src/props/LoginForm.ts +++ /dev/null @@ -1,6 +0,0 @@ -interface LoginForm { - login: String, - password: String, - domains: Array, - selectedSymbol: String -}