diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-14 15:56:29 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-14 16:03:35 +0300 |
commit | 3c3223c3b41411639ff19ebd58df569cf17999ca (patch) | |
tree | 0cdf433d3b718e5f87a286dd01159da431189a9e /src | |
parent | 99b44bc80fa3228131a05fccb13f75ff8a46b116 (diff) | |
download | which-ui-3c3223c3b41411639ff19ebd58df569cf17999ca.tar.gz |
divide src into Pages and Components directories
Diffstat (limited to 'src')
-rw-r--r-- | src/Components/Feed/Feed.tsx (renamed from src/Feed/Feed.tsx) | 4 | ||||
-rw-r--r-- | src/Components/Header/Header.tsx (renamed from src/Header/Header.tsx) | 0 | ||||
-rw-r--r-- | src/Components/Header/SearchBar.tsx (renamed from src/Header/SearchBar.tsx) | 0 | ||||
-rw-r--r-- | src/Components/PollCard/PollCard.tsx (renamed from src/PollCard/PollCard.tsx) | 2 | ||||
-rw-r--r-- | src/Pages/ProfilePage/Form/SignInForm.tsx (renamed from src/Form/SignInForm.tsx) | 4 | ||||
-rw-r--r-- | src/Pages/ProfilePage/ProfileInfo/ProfileInfo.tsx (renamed from src/ProfileInfo/ProfileInfo.tsx) | 4 | ||||
-rw-r--r-- | src/index.tsx | 8 |
7 files changed, 11 insertions, 11 deletions
diff --git a/src/Feed/Feed.tsx b/src/Components/Feed/Feed.tsx index d7bfce1..604c167 100644 --- a/src/Feed/Feed.tsx +++ b/src/Components/Feed/Feed.tsx @@ -1,8 +1,8 @@ import React, { useState, useEffect } from 'react'; import { makeStyles } from '@material-ui/core/styles'; -import { Poll } from '../types'; +import { Poll } from '../../types'; import PollCard from '../PollCard/PollCard'; -import { get } from '../requests'; +import { get } from '../../requests'; interface PropTypes { page: string; diff --git a/src/Header/Header.tsx b/src/Components/Header/Header.tsx index 0ee6b5f..0ee6b5f 100644 --- a/src/Header/Header.tsx +++ b/src/Components/Header/Header.tsx diff --git a/src/Header/SearchBar.tsx b/src/Components/Header/SearchBar.tsx index 182a1a4..182a1a4 100644 --- a/src/Header/SearchBar.tsx +++ b/src/Components/Header/SearchBar.tsx diff --git a/src/PollCard/PollCard.tsx b/src/Components/PollCard/PollCard.tsx index b639f25..8995a30 100644 --- a/src/PollCard/PollCard.tsx +++ b/src/Components/PollCard/PollCard.tsx @@ -7,7 +7,7 @@ import { Avatar, CardHeader } from '@material-ui/core/'; -import { Poll } from '../types'; +import { Poll } from '../../types'; interface PropTypes { poll: Poll; diff --git a/src/Form/SignInForm.tsx b/src/Pages/ProfilePage/Form/SignInForm.tsx index efe85ed..bfdc283 100644 --- a/src/Form/SignInForm.tsx +++ b/src/Pages/ProfilePage/Form/SignInForm.tsx @@ -2,8 +2,8 @@ import React, { useRef } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; -import { User } from '../types'; -import { get } from '../requests'; +import { User } from '../../../types'; +import { get } from '../../../requests'; interface PropTypes { setUser: (newUser: User) => void; diff --git a/src/ProfileInfo/ProfileInfo.tsx b/src/Pages/ProfilePage/ProfileInfo/ProfileInfo.tsx index 693f550..af866f8 100644 --- a/src/ProfileInfo/ProfileInfo.tsx +++ b/src/Pages/ProfilePage/ProfileInfo/ProfileInfo.tsx @@ -2,8 +2,8 @@ import React, { useState } from 'react'; import { Avatar } from '@material-ui/core/'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button/Button'; -import { User } from '../types'; -import { get } from '../requests'; +import { User } from '../../../types'; +import { get } from '../../../requests'; interface PropTypes { id: string; diff --git a/src/index.tsx b/src/index.tsx index 0855038..ec31728 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,11 +9,11 @@ import { CssBaseline } from '@material-ui/core'; import teal from '@material-ui/core/colors/teal'; import 'typeface-roboto'; -import Header from './Header/Header'; -import Feed from './Feed/Feed'; -import ProfileInfo from './ProfileInfo/ProfileInfo'; +import Header from './Components/Header/Header'; +import Feed from './Components/Feed/Feed'; +import ProfileInfo from './Pages/ProfilePage/ProfileInfo/ProfileInfo'; -import SignInForm from './Form/SignInForm'; +import SignInForm from './Pages/ProfilePage/Form/SignInForm'; import { User } from './types'; import { get } from './requests'; |