aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/containers/Feed/Feed.tsx (renamed from src/containers/FeedPage/FeedPage.tsx)4
-rw-r--r--src/containers/Feed/PollSubmission.tsx (renamed from src/containers/FeedPage/PollSubmission.tsx)0
-rw-r--r--src/containers/Feed/PollSubmissionImage.tsx (renamed from src/containers/FeedPage/PollSubmissionImage.tsx)0
-rw-r--r--src/containers/Feed/types.ts (renamed from src/containers/FeedPage/types.ts)0
-rw-r--r--src/containers/Home/Home.tsx (renamed from src/containers/HomePage/HomePage.tsx)4
-rw-r--r--src/containers/Home/ReviewForm.tsx (renamed from src/containers/HomePage/ReviewForm.tsx)0
-rw-r--r--src/containers/Login/Login.tsx (renamed from src/containers/LoginPage/LoginPage.tsx)4
-rw-r--r--src/containers/Notifications/Notifications.tsx (renamed from src/containers/NotificationsPage/NotificationsPage.tsx)4
-rw-r--r--src/containers/Page/Page.tsx24
-rw-r--r--src/containers/Profile/Highlight.tsx (renamed from src/containers/ProfilePage/Highlight.tsx)0
-rw-r--r--src/containers/Profile/MoreMenu.tsx (renamed from src/containers/ProfilePage/MoreMenu.tsx)0
-rw-r--r--src/containers/Profile/Profile.tsx (renamed from src/containers/ProfilePage/ProfilePage.tsx)4
-rw-r--r--src/containers/Profile/ProfileInfo.tsx (renamed from src/containers/ProfilePage/ProfileInfo.tsx)0
-rw-r--r--src/containers/Registration/Registration.tsx (renamed from src/containers/RegistrationPage/RegistrationPage.tsx)4
14 files changed, 24 insertions, 24 deletions
diff --git a/src/containers/FeedPage/FeedPage.tsx b/src/containers/Feed/Feed.tsx
index 7445c25..e923bdd 100644
--- a/src/containers/FeedPage/FeedPage.tsx
+++ b/src/containers/Feed/Feed.tsx
@@ -7,7 +7,7 @@ import PollSubmission from './PollSubmission';
import { useAuth } from '../../hooks/useAuth';
import { useFeed } from '../../hooks/APIClient';
-const FeedPage: React.FC = () => {
+const Feed: React.FC = () => {
const { data: polls, mutate } = useFeed();
const { isAuthenticated } = useAuth();
@@ -23,5 +23,5 @@ const FeedPage: React.FC = () => {
);
};
-export default FeedPage;
+export default Feed;
diff --git a/src/containers/FeedPage/PollSubmission.tsx b/src/containers/Feed/PollSubmission.tsx
index 347eecc..347eecc 100644
--- a/src/containers/FeedPage/PollSubmission.tsx
+++ b/src/containers/Feed/PollSubmission.tsx
diff --git a/src/containers/FeedPage/PollSubmissionImage.tsx b/src/containers/Feed/PollSubmissionImage.tsx
index 8835989..8835989 100644
--- a/src/containers/FeedPage/PollSubmissionImage.tsx
+++ b/src/containers/Feed/PollSubmissionImage.tsx
diff --git a/src/containers/FeedPage/types.ts b/src/containers/Feed/types.ts
index 24ace4e..24ace4e 100644
--- a/src/containers/FeedPage/types.ts
+++ b/src/containers/Feed/types.ts
diff --git a/src/containers/HomePage/HomePage.tsx b/src/containers/Home/Home.tsx
index b1dc506..73fa479 100644
--- a/src/containers/HomePage/HomePage.tsx
+++ b/src/containers/Home/Home.tsx
@@ -40,7 +40,7 @@ const useStyles = makeStyles(theme => ({
}
}));
-const HomePage: React.FC = () => {
+const Home: React.FC = () => {
const [feedbacks, setFeedbacks] = useState<Feedback[]>([]);
const classes = useStyles();
const history = useHistory();
@@ -199,5 +199,5 @@ const HomePage: React.FC = () => {
);
};
-export default HomePage;
+export default Home;
diff --git a/src/containers/HomePage/ReviewForm.tsx b/src/containers/Home/ReviewForm.tsx
index b626ce2..b626ce2 100644
--- a/src/containers/HomePage/ReviewForm.tsx
+++ b/src/containers/Home/ReviewForm.tsx
diff --git a/src/containers/LoginPage/LoginPage.tsx b/src/containers/Login/Login.tsx
index 335cbb1..bec0db5 100644
--- a/src/containers/LoginPage/LoginPage.tsx
+++ b/src/containers/Login/Login.tsx
@@ -35,7 +35,7 @@ const useStyles = makeStyles(theme => ({
}
}));
-const LoginPage: React.FC = () => {
+const Login: React.FC = () => {
const [error, setError] = useState<boolean>(false);
const [remember, setRemember] = useState<boolean>(true);
const classes = useStyles();
@@ -99,5 +99,5 @@ const LoginPage: React.FC = () => {
);
};
-export default LoginPage;
+export default Login;
diff --git a/src/containers/NotificationsPage/NotificationsPage.tsx b/src/containers/Notifications/Notifications.tsx
index 064fbd4..0648eb5 100644
--- a/src/containers/NotificationsPage/NotificationsPage.tsx
+++ b/src/containers/Notifications/Notifications.tsx
@@ -9,7 +9,7 @@ const useStyles = makeStyles(theme => ({
}
}));
-const NotificationsPage: React.FC = () => {
+const Notifications: React.FC = () => {
const classes = useStyles();
return (
@@ -19,5 +19,5 @@ const NotificationsPage: React.FC = () => {
);
};
-export default NotificationsPage;
+export default Notifications;
diff --git a/src/containers/Page/Page.tsx b/src/containers/Page/Page.tsx
index 8a39636..df27b74 100644
--- a/src/containers/Page/Page.tsx
+++ b/src/containers/Page/Page.tsx
@@ -5,12 +5,12 @@ import { SnackbarProvider } from 'notistack';
import { Switch, Route } from 'react-router-dom';
import Loading from '../../components/Loading/Loading';
-const ProfilePage = React.lazy(() => import('../ProfilePage/ProfilePage'));
-const FeedPage = React.lazy(() => import('../FeedPage/FeedPage'));
-const LoginPage = React.lazy(() => import('../LoginPage/LoginPage'));
-const RegistrationPage = React.lazy(() => import('../RegistrationPage/RegistrationPage'));
-const HomePage = React.lazy(() => import('../HomePage/HomePage'));
-const NotificationsPage = React.lazy(() => import('../NotificationsPage/NotificationsPage'));
+const Profile = React.lazy(() => import('../Profile/Profile'));
+const Feed = React.lazy(() => import('../Feed/Feed'));
+const Login = React.lazy(() => import('../Login/Login'));
+const Registration = React.lazy(() => import('../Registration/Registration'));
+const Home = React.lazy(() => import('../Home/Home'));
+const Notifications = React.lazy(() => import('../Notifications/Notifications'));
const useStyles = makeStyles(theme => ({
@@ -41,12 +41,12 @@ const Page: React.FC = () => {
<div className={classes.root}>
<Suspense fallback={<Loading />}>
<Switch>
- <Route exact path="/" component={HomePage} />
- <Route exact path="/login" component={LoginPage} />
- <Route exact path="/registration" component={RegistrationPage} />
- <Route exact path="/feed" component={FeedPage} />
- <Route exact path="/notifications" component={NotificationsPage} />
- <Route path="/profile/:username" component={ProfilePage} />
+ <Route exact path="/" component={Home} />
+ <Route exact path="/login" component={Login} />
+ <Route exact path="/registration" component={Registration} />
+ <Route exact path="/feed" component={Feed} />
+ <Route exact path="/notifications" component={Notifications} />
+ <Route path="/profile/:username" component={Profile} />
</Switch>
</Suspense>
</div>
diff --git a/src/containers/ProfilePage/Highlight.tsx b/src/containers/Profile/Highlight.tsx
index ebc3f56..ebc3f56 100644
--- a/src/containers/ProfilePage/Highlight.tsx
+++ b/src/containers/Profile/Highlight.tsx
diff --git a/src/containers/ProfilePage/MoreMenu.tsx b/src/containers/Profile/MoreMenu.tsx
index 1f41879..1f41879 100644
--- a/src/containers/ProfilePage/MoreMenu.tsx
+++ b/src/containers/Profile/MoreMenu.tsx
diff --git a/src/containers/ProfilePage/ProfilePage.tsx b/src/containers/Profile/Profile.tsx
index 7a1d729..af52e5e 100644
--- a/src/containers/ProfilePage/ProfilePage.tsx
+++ b/src/containers/Profile/Profile.tsx
@@ -10,7 +10,7 @@ import { useAuth } from '../../hooks/useAuth';
import { useUser, useProfile } from '../../hooks/APIClient';
-const ProfilePage: React.FC = () => {
+const Profile: React.FC = () => {
const history = useHistory();
const { username } = useParams();
const { user } = useAuth();
@@ -53,4 +53,4 @@ const ProfilePage: React.FC = () => {
);
};
-export default ProfilePage;
+export default Profile;
diff --git a/src/containers/ProfilePage/ProfileInfo.tsx b/src/containers/Profile/ProfileInfo.tsx
index 9eee4c1..9eee4c1 100644
--- a/src/containers/ProfilePage/ProfileInfo.tsx
+++ b/src/containers/Profile/ProfileInfo.tsx
diff --git a/src/containers/RegistrationPage/RegistrationPage.tsx b/src/containers/Registration/Registration.tsx
index 18a9379..c681329 100644
--- a/src/containers/RegistrationPage/RegistrationPage.tsx
+++ b/src/containers/Registration/Registration.tsx
@@ -33,7 +33,7 @@ const useStyles = makeStyles(theme => ({
}
}));
-const RegistrationPage: React.FC = () => {
+const Registration: React.FC = () => {
const [error, setError] = useState<boolean>(false);
const classes = useStyles();
const usernameRef = useRef<HTMLInputElement>();
@@ -93,4 +93,4 @@ const RegistrationPage: React.FC = () => {
);
};
-export default RegistrationPage;
+export default Registration;