From 8cab62ae7e5a657e1b5de494495c09d85b2ef017 Mon Sep 17 00:00:00 2001 From: Lucas Teixeira Date: Wed, 28 Oct 2020 19:25:13 -0300 Subject: [PATCH] WJ-24 - Update: screens to pages; --- src/{screens => pages}/Favorites/index.tsx | 0 src/{screens => pages}/Favorites/styles.ts | 0 src/{screens => pages}/Home/index.tsx | 0 src/{screens => pages}/Home/styles.ts | 0 src/{screens => pages}/Login/dtos/LoginFormData.ts | 0 src/{screens => pages}/Login/index.spec.tsx | 2 +- src/{screens => pages}/Login/index.tsx | 2 +- src/{screens => pages}/Login/styles.ts | 0 src/{screens => pages}/Movie/dtos/Params.ts | 0 src/{screens => pages}/Movie/index.tsx | 2 +- src/{screens => pages}/Movie/styles.ts | 0 src/{screens => pages}/Profile/index.tsx | 0 src/{screens => pages}/Profile/styles.ts | 0 src/{screens => pages}/Signup/dtos/SignupFormData.ts | 0 src/{screens => pages}/Signup/index.tsx | 2 +- src/{screens => pages}/Signup/styles.ts | 0 src/{screens => pages}/index.ts | 0 src/routes/index.tsx | 2 +- 18 files changed, 5 insertions(+), 5 deletions(-) rename src/{screens => pages}/Favorites/index.tsx (100%) rename src/{screens => pages}/Favorites/styles.ts (100%) rename src/{screens => pages}/Home/index.tsx (100%) rename src/{screens => pages}/Home/styles.ts (100%) rename src/{screens => pages}/Login/dtos/LoginFormData.ts (100%) rename src/{screens => pages}/Login/index.spec.tsx (98%) rename src/{screens => pages}/Login/index.tsx (98%) rename src/{screens => pages}/Login/styles.ts (100%) rename src/{screens => pages}/Movie/dtos/Params.ts (100%) rename src/{screens => pages}/Movie/index.tsx (98%) rename src/{screens => pages}/Movie/styles.ts (100%) rename src/{screens => pages}/Profile/index.tsx (100%) rename src/{screens => pages}/Profile/styles.ts (100%) rename src/{screens => pages}/Signup/dtos/SignupFormData.ts (100%) rename src/{screens => pages}/Signup/index.tsx (98%) rename src/{screens => pages}/Signup/styles.ts (100%) rename src/{screens => pages}/index.ts (100%) diff --git a/src/screens/Favorites/index.tsx b/src/pages/Favorites/index.tsx similarity index 100% rename from src/screens/Favorites/index.tsx rename to src/pages/Favorites/index.tsx diff --git a/src/screens/Favorites/styles.ts b/src/pages/Favorites/styles.ts similarity index 100% rename from src/screens/Favorites/styles.ts rename to src/pages/Favorites/styles.ts diff --git a/src/screens/Home/index.tsx b/src/pages/Home/index.tsx similarity index 100% rename from src/screens/Home/index.tsx rename to src/pages/Home/index.tsx diff --git a/src/screens/Home/styles.ts b/src/pages/Home/styles.ts similarity index 100% rename from src/screens/Home/styles.ts rename to src/pages/Home/styles.ts diff --git a/src/screens/Login/dtos/LoginFormData.ts b/src/pages/Login/dtos/LoginFormData.ts similarity index 100% rename from src/screens/Login/dtos/LoginFormData.ts rename to src/pages/Login/dtos/LoginFormData.ts diff --git a/src/screens/Login/index.spec.tsx b/src/pages/Login/index.spec.tsx similarity index 98% rename from src/screens/Login/index.spec.tsx rename to src/pages/Login/index.spec.tsx index f1db2b3..fc717a3 100644 --- a/src/screens/Login/index.spec.tsx +++ b/src/pages/Login/index.spec.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { render, fireEvent, waitFor } from '@testing-library/react'; import Route from 'routes/enums'; -import Login from 'screens/Login'; +import Login from 'pages/Login'; const mockedHistoryPush = jest.fn(); const mockedLogin = jest.fn(); diff --git a/src/screens/Login/index.tsx b/src/pages/Login/index.tsx similarity index 98% rename from src/screens/Login/index.tsx rename to src/pages/Login/index.tsx index 0c71d4f..03235f2 100644 --- a/src/screens/Login/index.tsx +++ b/src/pages/Login/index.tsx @@ -6,7 +6,7 @@ import * as Yup from 'yup'; import { useAuth } from 'domains/Auth/hooks'; import Route from 'routes/enums'; -import LoginFormData from 'screens/Login/dtos/LoginFormData'; +import LoginFormData from 'pages/Login/dtos/LoginFormData'; import getValidationErrors from 'shared/utils/getValidationErrors'; import { Color } from 'shared/enums'; diff --git a/src/screens/Login/styles.ts b/src/pages/Login/styles.ts similarity index 100% rename from src/screens/Login/styles.ts rename to src/pages/Login/styles.ts diff --git a/src/screens/Movie/dtos/Params.ts b/src/pages/Movie/dtos/Params.ts similarity index 100% rename from src/screens/Movie/dtos/Params.ts rename to src/pages/Movie/dtos/Params.ts diff --git a/src/screens/Movie/index.tsx b/src/pages/Movie/index.tsx similarity index 98% rename from src/screens/Movie/index.tsx rename to src/pages/Movie/index.tsx index b164096..45b34da 100644 --- a/src/screens/Movie/index.tsx +++ b/src/pages/Movie/index.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; -import Params from 'screens/Movie/dtos/Params'; +import Params from 'pages/Movie/dtos/Params'; import MovieDetails from 'domains/Movie/api/Details/Response'; import { Color } from 'shared/enums'; import { Details } from 'domains/Movie/api'; diff --git a/src/screens/Movie/styles.ts b/src/pages/Movie/styles.ts similarity index 100% rename from src/screens/Movie/styles.ts rename to src/pages/Movie/styles.ts diff --git a/src/screens/Profile/index.tsx b/src/pages/Profile/index.tsx similarity index 100% rename from src/screens/Profile/index.tsx rename to src/pages/Profile/index.tsx diff --git a/src/screens/Profile/styles.ts b/src/pages/Profile/styles.ts similarity index 100% rename from src/screens/Profile/styles.ts rename to src/pages/Profile/styles.ts diff --git a/src/screens/Signup/dtos/SignupFormData.ts b/src/pages/Signup/dtos/SignupFormData.ts similarity index 100% rename from src/screens/Signup/dtos/SignupFormData.ts rename to src/pages/Signup/dtos/SignupFormData.ts diff --git a/src/screens/Signup/index.tsx b/src/pages/Signup/index.tsx similarity index 98% rename from src/screens/Signup/index.tsx rename to src/pages/Signup/index.tsx index 1835a8c..4b16533 100644 --- a/src/screens/Signup/index.tsx +++ b/src/pages/Signup/index.tsx @@ -5,7 +5,7 @@ import { FormHandles } from '@unform/core'; import * as Yup from 'yup'; import Route from 'routes/enums'; -import SignupFormData from 'screens/Signup/dtos/SignupFormData'; +import SignupFormData from 'pages/Signup/dtos/SignupFormData'; import getValidationErrors from 'shared/utils/getValidationErrors'; import api from 'services/api'; diff --git a/src/screens/Signup/styles.ts b/src/pages/Signup/styles.ts similarity index 100% rename from src/screens/Signup/styles.ts rename to src/pages/Signup/styles.ts diff --git a/src/screens/index.ts b/src/pages/index.ts similarity index 100% rename from src/screens/index.ts rename to src/pages/index.ts diff --git a/src/routes/index.tsx b/src/routes/index.tsx index d05ff3a..e44c9fe 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -4,7 +4,7 @@ import { Switch } from 'react-router-dom'; import Route from 'routes/Route'; import RouteEnum from 'routes/enums'; -import { Home, Movie, Login, Signup, Profile, Favorites } from 'screens'; +import { Home, Movie, Login, Signup, Profile, Favorites } from 'pages'; const Routes: React.FC = () => (