Skip to content

Commit

Permalink
WJ-24 - Update: screens to pages;
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Teixeira committed Oct 28, 2020
1 parent cf8717b commit 8cab62a
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Login/index.tsx → src/pages/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/screens/Movie/index.tsx → src/pages/Movie/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
<Switch>
Expand Down

0 comments on commit 8cab62a

Please sign in to comment.