From fbdaa40e7ce585b65038835c05a283cec6f28d0e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 24 Jun 2020 00:52:26 +0300 Subject: chore: migrate to which-types@1.3.1 --- src/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index 1777e90..4e6779a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -13,7 +13,8 @@ import Header from './components/Header/Header'; import ProfilePage from './pages/ProfilePage/ProfilePage'; import FeedPage from './pages/FeedPage/FeedPage'; import AuthPage from './pages/AuthPage/AuthPage'; -import { User, Page } from './types'; +import { Page } from './types'; +import { User } from 'which-types'; import { get, post } from './requests'; import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow'; @@ -53,10 +54,10 @@ const App: React.FC = () => { } }; - const logIn = (name: string, password: string): Promise => { + const logIn = (username: string, password: string): Promise => { return post('/authentication', { strategy: 'local', - name, + username, password }).then(response => { const me = response.data.user; -- cgit v1.2.3 From cf3b9a1002d1971e5b867225baaca5f46039991b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 24 Jun 2020 01:03:34 +0300 Subject: refactor: use theme in styles --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index 4e6779a..2b7c689 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -22,7 +22,8 @@ import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow'; const theme = createMuiTheme({ palette: { primary: { - main: teal[700] + main: teal[700], + light: teal[100] } } }); -- cgit v1.2.3 From 6212b5ef0e2ae1f2c2334bc003ead1d4fd0b1fe4 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 14:14:44 +0300 Subject: style: fix linting errors --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.tsx') diff --git a/src/index.tsx b/src/index.tsx index 2b7c689..50b19f7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,12 +9,12 @@ import { CssBaseline } from '@material-ui/core'; import teal from '@material-ui/core/colors/teal'; import 'typeface-roboto'; +import { User } from 'which-types'; import Header from './components/Header/Header'; import ProfilePage from './pages/ProfilePage/ProfilePage'; import FeedPage from './pages/FeedPage/FeedPage'; import AuthPage from './pages/AuthPage/AuthPage'; import { Page } from './types'; -import { User } from 'which-types'; import { get, post } from './requests'; import ScrollTopArrow from './components/ScrollTopArrow/ScrollTopArrow'; -- cgit v1.2.3