diff --git a/src/components/Button/index.stories.tsx b/src/components/Button/index.stories.tsx index 2d898e1..2dddb3e 100644 --- a/src/components/Button/index.stories.tsx +++ b/src/components/Button/index.stories.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Story, Meta } from '@storybook/react'; import { FaRegUserCircle } from 'react-icons/fa'; -import Props from 'components/Button/dtos'; +import Props from 'components/Button/types'; import Button from 'components/Button'; // Config and Controls diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index b6e5818..e6068e9 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { ReactComponent as Loading } from 'assets/loading.svg'; import { Color } from 'shared/enums'; -import Props from './dtos'; +import Props from './types'; import { Container } from './styles'; const Button: React.FC = ({ diff --git a/src/components/Button/dtos/index.ts b/src/components/Button/types/index.ts similarity index 100% rename from src/components/Button/dtos/index.ts rename to src/components/Button/types/index.ts diff --git a/src/components/Input/index.stories.tsx b/src/components/Input/index.stories.tsx index 691beac..729db9e 100644 --- a/src/components/Input/index.stories.tsx +++ b/src/components/Input/index.stories.tsx @@ -4,7 +4,7 @@ import { FormHandles } from '@unform/core'; import { Form } from '@unform/web'; import { FaRegUserCircle } from 'react-icons/fa'; -import Props from 'components/Input/dtos'; +import Props from 'components/Input/types'; import Input from 'components/Input'; // Config and Controls diff --git a/src/components/Input/index.tsx b/src/components/Input/index.tsx index 43ebde3..ca411c8 100644 --- a/src/components/Input/index.tsx +++ b/src/components/Input/index.tsx @@ -3,7 +3,7 @@ import { FiAlertTriangle } from 'react-icons/fi'; import { useField } from '@unform/core'; import { Color } from 'shared/enums'; -import Props from './dtos'; +import Props from './types'; import { Container, Error } from './styles'; const Input: React.FC = ({ diff --git a/src/components/Input/dtos/index.ts b/src/components/Input/types/index.ts similarity index 100% rename from src/components/Input/dtos/index.ts rename to src/components/Input/types/index.ts diff --git a/src/components/MovieHighlight/index.stories.tsx b/src/components/MovieHighlight/index.stories.tsx index d0c399b..c9b3933 100644 --- a/src/components/MovieHighlight/index.stories.tsx +++ b/src/components/MovieHighlight/index.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Story, Meta } from '@storybook/react'; -import Props from 'components/MovieHighlight/dtos'; +import Props from 'components/MovieHighlight/types'; import MovieHighlight from 'components/MovieHighlight'; // Config and Controls diff --git a/src/components/MovieHighlight/index.tsx b/src/components/MovieHighlight/index.tsx index b673cff..38f5953 100644 --- a/src/components/MovieHighlight/index.tsx +++ b/src/components/MovieHighlight/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import Route from 'routes/enums'; -import Props from './dtos'; +import Props from './types'; import { Container, Backdrop, Caption, Title, Overview } from './styles'; const MovieHighlight: React.FC = ({ showOverview = true, ...movie }) => { diff --git a/src/components/MovieHighlight/dtos/index.ts b/src/components/MovieHighlight/types/index.ts similarity index 100% rename from src/components/MovieHighlight/dtos/index.ts rename to src/components/MovieHighlight/types/index.ts diff --git a/src/components/Tooltip/index.tsx b/src/components/Tooltip/index.tsx index 08fad7e..82cae85 100644 --- a/src/components/Tooltip/index.tsx +++ b/src/components/Tooltip/index.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import TooltipProps from 'components/Tooltip/dtos'; +import TooltipProps from 'components/Tooltip/types'; import { Container, Content } from './styles'; const Tooltip: React.FC = ({ value, children, ...rest }) => { diff --git a/src/components/Tooltip/dtos/index.ts b/src/components/Tooltip/types/index.ts similarity index 100% rename from src/components/Tooltip/dtos/index.ts rename to src/components/Tooltip/types/index.ts diff --git a/src/containers/EntityImage/index.stories.tsx b/src/containers/EntityImage/index.stories.tsx index 9fa49b7..c34e209 100644 --- a/src/containers/EntityImage/index.stories.tsx +++ b/src/containers/EntityImage/index.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Story, Meta } from '@storybook/react'; -import Props from 'containers/EntityImage/dtos'; +import Props from 'containers/EntityImage/types'; import { EntityImage } from 'containers'; // Config and Controls diff --git a/src/containers/EntityImage/index.tsx b/src/containers/EntityImage/index.tsx index b0d26fa..1393f16 100644 --- a/src/containers/EntityImage/index.tsx +++ b/src/containers/EntityImage/index.tsx @@ -16,7 +16,7 @@ import { InfoSubtitle, } from './styles'; -import Props from './dtos'; +import Props from './types'; const EntityImage: React.FC = ({ size, diff --git a/src/containers/EntityImage/styles.ts b/src/containers/EntityImage/styles.ts index 20bcd23..c960cdc 100644 --- a/src/containers/EntityImage/styles.ts +++ b/src/containers/EntityImage/styles.ts @@ -1,7 +1,7 @@ import styled, { css } from 'styled-components'; import { Color, PosterHeight, PosterWidth, Size } from 'shared/enums'; -import ContainerProps from './dtos/ContainerProps'; +import ContainerProps from './types/ContainerProps'; export const Container = styled.div` position: relative; diff --git a/src/containers/EntityImage/dtos/ContainerProps.ts b/src/containers/EntityImage/types/ContainerProps.ts similarity index 100% rename from src/containers/EntityImage/dtos/ContainerProps.ts rename to src/containers/EntityImage/types/ContainerProps.ts diff --git a/src/containers/EntityImage/dtos/index.ts b/src/containers/EntityImage/types/index.ts similarity index 100% rename from src/containers/EntityImage/dtos/index.ts rename to src/containers/EntityImage/types/index.ts diff --git a/src/containers/EntityImageList/index.stories.tsx b/src/containers/EntityImageList/index.stories.tsx index 9b829fb..07071d5 100644 --- a/src/containers/EntityImageList/index.stories.tsx +++ b/src/containers/EntityImageList/index.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Story, Meta } from '@storybook/react'; -import Props from 'containers/EntityImageList/dtos'; +import Props from 'containers/EntityImageList/types'; import EntityImageList from 'containers/EntityImageList'; // Config and Controls diff --git a/src/containers/EntityImageList/index.tsx b/src/containers/EntityImageList/index.tsx index 2c9b102..c4e8a67 100644 --- a/src/containers/EntityImageList/index.tsx +++ b/src/containers/EntityImageList/index.tsx @@ -13,7 +13,7 @@ import { MessageContainer, } from './styles'; -import Props from './dtos'; +import Props from './types'; const EntityImageList: React.FC = ({ theme, diff --git a/src/containers/EntityImageList/dtos/index.ts b/src/containers/EntityImageList/types/index.ts similarity index 83% rename from src/containers/EntityImageList/dtos/index.ts rename to src/containers/EntityImageList/types/index.ts index c0613de..62d7646 100644 --- a/src/containers/EntityImageList/dtos/index.ts +++ b/src/containers/EntityImageList/types/index.ts @@ -2,7 +2,7 @@ import DefaultProps from 'shared/dtos'; // import MovieProps from 'containers/EntityImage/dtos'; // import FavoriteProps from 'domains/Favorites/api/List/Response'; import { Color } from 'shared/enums'; -import ContainerProps from 'containers/EntityImage/dtos/ContainerProps'; +import ContainerProps from 'containers/EntityImage/types/ContainerProps'; export default interface Props extends DefaultProps, ContainerProps { title?: string; diff --git a/src/containers/EntitySummary/index.tsx b/src/containers/EntitySummary/index.tsx index ead403e..da7eccd 100644 --- a/src/containers/EntitySummary/index.tsx +++ b/src/containers/EntitySummary/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import { getEntityRoute } from 'shared/utils'; -import Props from 'containers/EntitySummary/dtos'; +import Props from 'containers/EntitySummary/types'; import { EntityImage } from 'containers'; import { diff --git a/src/containers/EntitySummary/styles.ts b/src/containers/EntitySummary/styles.ts index 4334752..18bd3b0 100644 --- a/src/containers/EntitySummary/styles.ts +++ b/src/containers/EntitySummary/styles.ts @@ -1,6 +1,6 @@ import styled from 'styled-components'; -import ContainerProps from 'containers/EntitySummary/dtos/ContainerProps'; +import ContainerProps from 'containers/EntitySummary/types/ContainerProps'; import { Color, EntityType, Size } from 'shared/enums'; export const Container = styled.div` diff --git a/src/containers/EntitySummary/dtos/ContainerProps.ts b/src/containers/EntitySummary/types/ContainerProps.ts similarity index 100% rename from src/containers/EntitySummary/dtos/ContainerProps.ts rename to src/containers/EntitySummary/types/ContainerProps.ts diff --git a/src/containers/EntitySummary/dtos/index.ts b/src/containers/EntitySummary/types/index.ts similarity index 100% rename from src/containers/EntitySummary/dtos/index.ts rename to src/containers/EntitySummary/types/index.ts diff --git a/src/containers/EntitySummaryList/index.tsx b/src/containers/EntitySummaryList/index.tsx index 92476bf..e083482 100644 --- a/src/containers/EntitySummaryList/index.tsx +++ b/src/containers/EntitySummaryList/index.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import Props from 'containers/EntitySummaryList/dtos'; +import Props from 'containers/EntitySummaryList/types'; import { ReactComponent as Loading } from 'assets/loading.svg'; import { EntitySummary } from 'containers'; diff --git a/src/containers/EntitySummaryList/dtos/index.ts b/src/containers/EntitySummaryList/types/index.ts similarity index 100% rename from src/containers/EntitySummaryList/dtos/index.ts rename to src/containers/EntitySummaryList/types/index.ts diff --git a/src/containers/Filmography/index.tsx b/src/containers/Filmography/index.tsx index d714517..537c68c 100644 --- a/src/containers/Filmography/index.tsx +++ b/src/containers/Filmography/index.tsx @@ -17,7 +17,7 @@ import { MessageContainer, } from './styles'; -import Props from './dtos'; +import Props from './types'; const Filmography: React.FC = ({ theme, diff --git a/src/containers/Filmography/dtos/index.ts b/src/containers/Filmography/types/index.ts similarity index 100% rename from src/containers/Filmography/dtos/index.ts rename to src/containers/Filmography/types/index.ts diff --git a/src/containers/Highlights/index.stories.tsx b/src/containers/Highlights/index.stories.tsx index 978f68e..bb525a2 100644 --- a/src/containers/Highlights/index.stories.tsx +++ b/src/containers/Highlights/index.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Story, Meta } from '@storybook/react'; -import Props from 'containers/Highlights/dtos'; +import Props from 'containers/Highlights/types'; import Highlights from 'containers/Highlights'; // Config and Controls diff --git a/src/containers/Highlights/index.tsx b/src/containers/Highlights/index.tsx index e9daff3..e80354b 100644 --- a/src/containers/Highlights/index.tsx +++ b/src/containers/Highlights/index.tsx @@ -4,7 +4,7 @@ import { Wrapper } from 'components/Layout'; import { MovieHighlight } from 'components'; import { Container, MajorContainer, MinorContainer } from './styles'; -import Props from './dtos'; +import Props from './types'; const Highlights: React.FC = ({ theme, background, color, movies }) => { if (!movies || movies.length === 0) { diff --git a/src/containers/Highlights/dtos/index.ts b/src/containers/Highlights/types/index.ts similarity index 100% rename from src/containers/Highlights/dtos/index.ts rename to src/containers/Highlights/types/index.ts diff --git a/src/domains/Auth/api/PostAuth/index.ts b/src/domains/Auth/api/PostAuth/index.ts index 82ae3fc..8b651b7 100644 --- a/src/domains/Auth/api/PostAuth/index.ts +++ b/src/domains/Auth/api/PostAuth/index.ts @@ -1,6 +1,6 @@ -import RawResponse from 'domains/Auth/api/PostAuth/RawResponse'; -import Response from 'domains/Auth/api/PostAuth/Response'; -import LoginCredentials from 'domains/Auth/dtos/LoginCredentials'; +import RawResponse from 'domains/Auth/api/PostAuth/types/RawResponse'; +import Response from 'domains/Auth/api/PostAuth/types/Response'; +import LoginCredentials from 'domains/Auth/types/LoginCredentials'; import api from 'services/api'; export const postRawAuth = async ({ diff --git a/src/domains/Auth/api/PostAuth/RawResponse.ts b/src/domains/Auth/api/PostAuth/types/RawResponse.ts similarity index 100% rename from src/domains/Auth/api/PostAuth/RawResponse.ts rename to src/domains/Auth/api/PostAuth/types/RawResponse.ts diff --git a/src/domains/Auth/api/PostAuth/Response.ts b/src/domains/Auth/api/PostAuth/types/Response.ts similarity index 100% rename from src/domains/Auth/api/PostAuth/Response.ts rename to src/domains/Auth/api/PostAuth/types/Response.ts diff --git a/src/domains/Auth/hooks/index.tsx b/src/domains/Auth/hooks/index.tsx index d355682..bd62d62 100644 --- a/src/domains/Auth/hooks/index.tsx +++ b/src/domains/Auth/hooks/index.tsx @@ -2,8 +2,8 @@ import React, { createContext, useCallback, useContext, useState } from 'react'; import api from 'services/api'; import { postRawAuth } from 'domains/Auth/api/PostAuth'; -import ContextData from '../dtos/ContextData'; -import AuthState from '../dtos/AuthState'; +import ContextData from '../types/ContextData'; +import AuthState from '../types/AuthState'; const AuthContext = createContext({} as ContextData); diff --git a/src/domains/Auth/dtos/AuthState.ts b/src/domains/Auth/types/AuthState.ts similarity index 100% rename from src/domains/Auth/dtos/AuthState.ts rename to src/domains/Auth/types/AuthState.ts diff --git a/src/domains/Auth/dtos/ContextData.ts b/src/domains/Auth/types/ContextData.ts similarity index 100% rename from src/domains/Auth/dtos/ContextData.ts rename to src/domains/Auth/types/ContextData.ts diff --git a/src/domains/Auth/dtos/LoginCredentials.ts b/src/domains/Auth/types/LoginCredentials.ts similarity index 100% rename from src/domains/Auth/dtos/LoginCredentials.ts rename to src/domains/Auth/types/LoginCredentials.ts diff --git a/src/domains/Environment/hooks/index.tsx b/src/domains/Environment/hooks/index.tsx index b726316..4705ac4 100644 --- a/src/domains/Environment/hooks/index.tsx +++ b/src/domains/Environment/hooks/index.tsx @@ -1,8 +1,8 @@ import React, { createContext, useContext } from 'react'; -import Environment from 'domains/Environment/dtos/Environment'; +import Environment from 'domains/Environment/types/Environment'; import { Environment as EnvironmentEnum } from 'domains/Environment/enums/Environment'; -import ContextData from '../dtos/ContextData'; +import ContextData from '../types/ContextData'; const EnvironmentContext = createContext({} as ContextData); diff --git a/src/domains/Environment/dtos/ContextData.ts b/src/domains/Environment/types/ContextData.ts similarity index 60% rename from src/domains/Environment/dtos/ContextData.ts rename to src/domains/Environment/types/ContextData.ts index ca96932..9fc3247 100644 --- a/src/domains/Environment/dtos/ContextData.ts +++ b/src/domains/Environment/types/ContextData.ts @@ -1,4 +1,4 @@ -import Environment from 'domains/Environment/dtos/Environment'; +import Environment from 'domains/Environment/types/Environment'; export default interface ContextData { isProduction: boolean; diff --git a/src/domains/Environment/dtos/Environment.ts b/src/domains/Environment/types/Environment.ts similarity index 100% rename from src/domains/Environment/dtos/Environment.ts rename to src/domains/Environment/types/Environment.ts diff --git a/src/domains/Favorites/api/List/index.ts b/src/domains/Favorites/api/List/index.ts index 9aa43da..a7a1d8c 100644 --- a/src/domains/Favorites/api/List/index.ts +++ b/src/domains/Favorites/api/List/index.ts @@ -1,8 +1,8 @@ import api from 'services/api'; import { getByType } from 'domains/Favorites/helpers'; -import RawResponse from 'domains/Favorites/api/List/RawResponse'; -import Response from 'domains/Favorites/api/List/Response'; +import RawResponse from 'domains/Favorites/api/List/types/RawResponse'; +import Response from 'domains/Favorites/api/List/types/Response'; const Favorites = async (): Promise => { const response = await rawFavorites(); diff --git a/src/domains/Favorites/api/List/RawResponse.ts b/src/domains/Favorites/api/List/types/RawResponse.ts similarity index 100% rename from src/domains/Favorites/api/List/RawResponse.ts rename to src/domains/Favorites/api/List/types/RawResponse.ts diff --git a/src/domains/Favorites/api/List/Response.ts b/src/domains/Favorites/api/List/types/Response.ts similarity index 56% rename from src/domains/Favorites/api/List/Response.ts rename to src/domains/Favorites/api/List/types/Response.ts index a85a12e..4e28d91 100644 --- a/src/domains/Favorites/api/List/Response.ts +++ b/src/domains/Favorites/api/List/types/Response.ts @@ -1,5 +1,5 @@ -import MovieResponse from 'domains/Movie/api/Details/Response'; -import PersonResponse from 'domains/Person/api/Details/Response'; +import MovieResponse from 'domains/Movie/api/Details/types/Response'; +import PersonResponse from 'domains/Person/api/Details/types/Response'; export default interface Response extends Omit, diff --git a/src/domains/Favorites/api/Update/index.ts b/src/domains/Favorites/api/Update/index.ts index ef180c2..24e9455 100644 --- a/src/domains/Favorites/api/Update/index.ts +++ b/src/domains/Favorites/api/Update/index.ts @@ -1,8 +1,8 @@ import api from 'services/api'; import { getByType } from 'domains/Favorites/helpers'; -import RawResponse from 'domains/Favorites/api/Update/RawResponse'; -import Response from 'domains/Favorites/api/Update/Response'; +import RawResponse from 'domains/Favorites/api/Update/types/RawResponse'; +import Response from 'domains/Favorites/api/Update/types/Response'; const Update = async ( entityId: number, diff --git a/src/domains/Favorites/api/Update/RawResponse.ts b/src/domains/Favorites/api/Update/types/RawResponse.ts similarity index 100% rename from src/domains/Favorites/api/Update/RawResponse.ts rename to src/domains/Favorites/api/Update/types/RawResponse.ts diff --git a/src/domains/Favorites/api/Update/Response.ts b/src/domains/Favorites/api/Update/types/Response.ts similarity index 65% rename from src/domains/Favorites/api/Update/Response.ts rename to src/domains/Favorites/api/Update/types/Response.ts index 8fbb690..443ee6b 100644 --- a/src/domains/Favorites/api/Update/Response.ts +++ b/src/domains/Favorites/api/Update/types/Response.ts @@ -1,4 +1,4 @@ -import DetailsResponse from 'domains/Movie/api/Details/Response'; +import DetailsResponse from 'domains/Movie/api/Details/types/Response'; export default interface Response extends Omit { favoriteId: string; diff --git a/src/domains/Favorites/hooks/index.tsx b/src/domains/Favorites/hooks/index.tsx index 03c97a0..8b63120 100644 --- a/src/domains/Favorites/hooks/index.tsx +++ b/src/domains/Favorites/hooks/index.tsx @@ -1,12 +1,12 @@ import React, { createContext, useCallback, useContext, useState } from 'react'; -import ListResponse from 'domains/Favorites/api/List/Response'; -import UpdateResponse from 'domains/Favorites/api/Update/Response'; +import ListResponse from 'domains/Favorites/api/List/types/Response'; +import UpdateResponse from 'domains/Favorites/api/Update/types/Response'; import { Favorites as FavoritesApi, UpdateFavorite as UpdateFavoriteApi, } from 'domains/Favorites/api'; -import ContextData from '../dtos/ContextData'; +import ContextData from '../types/ContextData'; const FavoriteContext = createContext({} as ContextData); diff --git a/src/domains/Favorites/dtos/ContextData.ts b/src/domains/Favorites/types/ContextData.ts similarity index 69% rename from src/domains/Favorites/dtos/ContextData.ts rename to src/domains/Favorites/types/ContextData.ts index b2a1a27..4592d6f 100644 --- a/src/domains/Favorites/dtos/ContextData.ts +++ b/src/domains/Favorites/types/ContextData.ts @@ -1,7 +1,7 @@ import { Dispatch, SetStateAction } from 'react'; -import ListResponse from 'domains/Favorites/api/List/Response'; -import UpdateResponse from 'domains/Favorites/api/Update/Response'; +import ListResponse from 'domains/Favorites/api/List/types/Response'; +import UpdateResponse from 'domains/Favorites/api/Update/types/Response'; export default interface ContextData { favoriteList: ListResponse[]; diff --git a/src/domains/Favorites/dtos/Environment.ts b/src/domains/Favorites/types/Environment.ts similarity index 100% rename from src/domains/Favorites/dtos/Environment.ts rename to src/domains/Favorites/types/Environment.ts diff --git a/src/domains/Movie/api/Credits/Response.ts b/src/domains/Movie/api/Credits/Response.ts deleted file mode 100644 index cd876fb..0000000 --- a/src/domains/Movie/api/Credits/Response.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Cast from 'domains/Movie/api/Credits/dtos/Cast'; -import Crew from 'domains/Movie/api/Credits/dtos/Crew'; - -export default interface Response { - cast: Cast[]; - crew: Crew[]; -} diff --git a/src/domains/Movie/api/Credits/dtos/Cast.ts b/src/domains/Movie/api/Credits/types/Cast.ts similarity index 100% rename from src/domains/Movie/api/Credits/dtos/Cast.ts rename to src/domains/Movie/api/Credits/types/Cast.ts diff --git a/src/domains/Movie/api/Credits/dtos/Crew.ts b/src/domains/Movie/api/Credits/types/Crew.ts similarity index 100% rename from src/domains/Movie/api/Credits/dtos/Crew.ts rename to src/domains/Movie/api/Credits/types/Crew.ts diff --git a/src/domains/Movie/api/Credits/RawResponse.ts b/src/domains/Movie/api/Credits/types/RawResponse.ts similarity index 100% rename from src/domains/Movie/api/Credits/RawResponse.ts rename to src/domains/Movie/api/Credits/types/RawResponse.ts diff --git a/src/domains/Movie/api/Credits/types/Response.ts b/src/domains/Movie/api/Credits/types/Response.ts new file mode 100644 index 0000000..3925f7c --- /dev/null +++ b/src/domains/Movie/api/Credits/types/Response.ts @@ -0,0 +1,7 @@ +import Cast from 'domains/Movie/api/Credits/types/Cast'; +import Crew from 'domains/Movie/api/Credits/types/Crew'; + +export default interface Response { + cast: Cast[]; + crew: Crew[]; +} diff --git a/src/domains/Movie/api/Details/index.ts b/src/domains/Movie/api/Details/index.ts index fcab846..b854f20 100644 --- a/src/domains/Movie/api/Details/index.ts +++ b/src/domains/Movie/api/Details/index.ts @@ -11,14 +11,14 @@ import { } from 'shared/utils/Entity'; import { EntityType } from 'shared/enums'; -import Params from 'domains/Movie/api/Details/Params'; -import RawResponse from 'domains/Movie/api/Details/RawResponse'; -import Response from 'domains/Movie/api/Details/Response'; -import Recommendations from 'domains/Movie/api/Recommendations/Response'; -import Credits from 'domains/Movie/api/Credits/Response'; - -import Crew from 'domains/Movie/api/Credits/dtos/Crew'; -import Cast from 'domains/Movie/api/Credits/dtos/Cast'; +import Params from 'domains/Movie/api/Details/types/Params'; +import RawResponse from 'domains/Movie/api/Details/types/RawResponse'; +import Response from 'domains/Movie/api/Details/types/Response'; +import Recommendations from 'domains/Movie/api/Recommendations/types/Response'; +import Credits from 'domains/Movie/api/Credits/types/Response'; + +import Crew from 'domains/Movie/api/Credits/types/Crew'; +import Cast from 'domains/Movie/api/Credits/types/Cast'; const Details = async (movieId: number, params?: Params): Promise => { const response = await rawPopular(movieId, params); diff --git a/src/domains/Movie/api/Details/Params.ts b/src/domains/Movie/api/Details/types/Params.ts similarity index 100% rename from src/domains/Movie/api/Details/Params.ts rename to src/domains/Movie/api/Details/types/Params.ts diff --git a/src/domains/Movie/api/Details/RawResponse.ts b/src/domains/Movie/api/Details/types/RawResponse.ts similarity index 78% rename from src/domains/Movie/api/Details/RawResponse.ts rename to src/domains/Movie/api/Details/types/RawResponse.ts index 169e4d0..5e35edd 100644 --- a/src/domains/Movie/api/Details/RawResponse.ts +++ b/src/domains/Movie/api/Details/types/RawResponse.ts @@ -1,5 +1,5 @@ -import Recommendations from 'domains/Movie/api/Recommendations/RawResponse'; -import Credits from 'domains/Movie/api/Credits/RawResponse'; +import Recommendations from 'domains/Movie/api/Recommendations/types/RawResponse'; +import Credits from 'domains/Movie/api/Credits/types/RawResponse'; export default interface RawResponse { poster_path?: string; diff --git a/src/domains/Movie/api/Details/Response.ts b/src/domains/Movie/api/Details/types/Response.ts similarity index 80% rename from src/domains/Movie/api/Details/Response.ts rename to src/domains/Movie/api/Details/types/Response.ts index 4725a6d..686dc32 100644 --- a/src/domains/Movie/api/Details/Response.ts +++ b/src/domains/Movie/api/Details/types/Response.ts @@ -1,5 +1,5 @@ -import Recommendations from 'domains/Movie/api/Recommendations/Response'; -import Credits from 'domains/Movie/api/Credits/Response'; +import Recommendations from 'domains/Movie/api/Recommendations/types/Response'; +import Credits from 'domains/Movie/api/Credits/types/Response'; export default interface Response { poster?: string; diff --git a/src/domains/Movie/api/NowPlaying/index.ts b/src/domains/Movie/api/NowPlaying/index.ts index a1b2749..bd87b08 100644 --- a/src/domains/Movie/api/NowPlaying/index.ts +++ b/src/domains/Movie/api/NowPlaying/index.ts @@ -9,9 +9,9 @@ import { } from 'shared/utils/Entity'; import { EntityType } from 'shared/enums'; -import Params from 'domains/Movie/api/NowPlaying/Params'; -import RawResponse from 'domains/Movie/api/NowPlaying/RawResponse'; -import Response from 'domains/Movie/api/NowPlaying/Response'; +import Params from 'domains/Movie/api/NowPlaying/types/Params'; +import RawResponse from 'domains/Movie/api/NowPlaying/types/RawResponse'; +import Response from 'domains/Movie/api/NowPlaying/types/Response'; const NowPlaying = async (params?: Params): Promise => { const response = await rawNowPlaying(params); diff --git a/src/domains/Movie/api/NowPlaying/Params.ts b/src/domains/Movie/api/NowPlaying/types/Params.ts similarity index 100% rename from src/domains/Movie/api/NowPlaying/Params.ts rename to src/domains/Movie/api/NowPlaying/types/Params.ts diff --git a/src/domains/Movie/api/NowPlaying/RawResponse.ts b/src/domains/Movie/api/NowPlaying/types/RawResponse.ts similarity index 100% rename from src/domains/Movie/api/NowPlaying/RawResponse.ts rename to src/domains/Movie/api/NowPlaying/types/RawResponse.ts diff --git a/src/domains/Movie/api/NowPlaying/Response.ts b/src/domains/Movie/api/NowPlaying/types/Response.ts similarity index 100% rename from src/domains/Movie/api/NowPlaying/Response.ts rename to src/domains/Movie/api/NowPlaying/types/Response.ts diff --git a/src/domains/Movie/api/Popular/index.ts b/src/domains/Movie/api/Popular/index.ts index 2236106..a0eea03 100644 --- a/src/domains/Movie/api/Popular/index.ts +++ b/src/domains/Movie/api/Popular/index.ts @@ -9,9 +9,9 @@ import { } from 'shared/utils/Entity'; import { EntityType } from 'shared/enums'; -import Params from 'domains/Movie/api/Popular/Params'; -import RawResponse from 'domains/Movie/api/Popular/RawResponse'; -import Response from 'domains/Movie/api/Popular/Response'; +import Params from 'domains/Movie/api/Popular/types/Params'; +import RawResponse from 'domains/Movie/api/Popular/types/RawResponse'; +import Response from 'domains/Movie/api/Popular/types/Response'; const Popular = async (params?: Params): Promise => { const response = await rawPopular(params); diff --git a/src/domains/Movie/api/Popular/Params.ts b/src/domains/Movie/api/Popular/types/Params.ts similarity index 100% rename from src/domains/Movie/api/Popular/Params.ts rename to src/domains/Movie/api/Popular/types/Params.ts diff --git a/src/domains/Movie/api/Popular/RawResponse.ts b/src/domains/Movie/api/Popular/types/RawResponse.ts similarity index 100% rename from src/domains/Movie/api/Popular/RawResponse.ts rename to src/domains/Movie/api/Popular/types/RawResponse.ts diff --git a/src/domains/Movie/api/Popular/Response.ts b/src/domains/Movie/api/Popular/types/Response.ts similarity index 100% rename from src/domains/Movie/api/Popular/Response.ts rename to src/domains/Movie/api/Popular/types/Response.ts diff --git a/src/domains/Movie/api/Recommendations/index.ts b/src/domains/Movie/api/Recommendations/index.ts index 53ab239..fd81ddd 100644 --- a/src/domains/Movie/api/Recommendations/index.ts +++ b/src/domains/Movie/api/Recommendations/index.ts @@ -3,8 +3,8 @@ import tmdb from 'services/api/tmdb'; import { formatDate, formatTmdbImage } from 'shared/utils'; import { EntityType } from 'shared/enums'; -import RawResponse from 'domains/Movie/api/Recommendations/RawResponse'; -import Response from 'domains/Movie/api/Recommendations/Response'; +import RawResponse from 'domains/Movie/api/Recommendations/types/RawResponse'; +import Response from 'domains/Movie/api/Recommendations/types/Response'; const Recommendations = async (movieId: number): Promise => { const response = await rawPopular(movieId); diff --git a/src/domains/Movie/api/Recommendations/RawResponse.ts b/src/domains/Movie/api/Recommendations/types/RawResponse.ts similarity index 100% rename from src/domains/Movie/api/Recommendations/RawResponse.ts rename to src/domains/Movie/api/Recommendations/types/RawResponse.ts diff --git a/src/domains/Movie/api/Recommendations/Response.ts b/src/domains/Movie/api/Recommendations/types/Response.ts similarity index 100% rename from src/domains/Movie/api/Recommendations/Response.ts rename to src/domains/Movie/api/Recommendations/types/Response.ts diff --git a/src/domains/Person/api/Details/index.ts b/src/domains/Person/api/Details/index.ts index 38cfa65..31b0113 100644 --- a/src/domains/Person/api/Details/index.ts +++ b/src/domains/Person/api/Details/index.ts @@ -13,10 +13,10 @@ import { getTitle, } from 'shared/utils/Entity'; -import Params from 'domains/Person/api/Details/Params'; -import RawResponse from 'domains/Person/api/Details/RawResponse'; -import Response from 'domains/Person/api/Details/Response'; -import Movie from 'domains/Person/api/Details/Movie'; +import Params from 'domains/Person/api/Details/types/Params'; +import RawResponse from 'domains/Person/api/Details/types/RawResponse'; +import Response from 'domains/Person/api/Details/types/Response'; +import Movie from 'domains/Person/api/Details/types/Movie'; const Details = async ( personId: number, diff --git a/src/domains/Person/api/Details/Movie.ts b/src/domains/Person/api/Details/types/Movie.ts similarity index 70% rename from src/domains/Person/api/Details/Movie.ts rename to src/domains/Person/api/Details/types/Movie.ts index 93362b9..e3b4ec8 100644 --- a/src/domains/Person/api/Details/Movie.ts +++ b/src/domains/Person/api/Details/types/Movie.ts @@ -1,4 +1,4 @@ -import MovieDetails from 'domains/Movie/api/Details/Response'; +import MovieDetails from 'domains/Movie/api/Details/types/Response'; export default interface Movie extends MovieDetails { character: string; diff --git a/src/domains/Person/api/Details/Params.ts b/src/domains/Person/api/Details/types/Params.ts similarity index 100% rename from src/domains/Person/api/Details/Params.ts rename to src/domains/Person/api/Details/types/Params.ts diff --git a/src/domains/Person/api/Details/RawMovie.ts b/src/domains/Person/api/Details/types/RawMovie.ts similarity index 72% rename from src/domains/Person/api/Details/RawMovie.ts rename to src/domains/Person/api/Details/types/RawMovie.ts index 85b71ab..fd08f6a 100644 --- a/src/domains/Person/api/Details/RawMovie.ts +++ b/src/domains/Person/api/Details/types/RawMovie.ts @@ -1,4 +1,4 @@ -import RawMovieDetails from 'domains/Movie/api/Details/RawResponse'; +import RawMovieDetails from 'domains/Movie/api/Details/types/RawResponse'; export default interface RawMovie extends RawMovieDetails { character: string; diff --git a/src/domains/Person/api/Details/RawResponse.ts b/src/domains/Person/api/Details/types/RawResponse.ts similarity index 87% rename from src/domains/Person/api/Details/RawResponse.ts rename to src/domains/Person/api/Details/types/RawResponse.ts index 2653590..493a171 100644 --- a/src/domains/Person/api/Details/RawResponse.ts +++ b/src/domains/Person/api/Details/types/RawResponse.ts @@ -1,5 +1,5 @@ // import Recommendations from 'domains/Movie/api/Recommendations/RawResponse'; -import RawMovie from 'domains/Person/api/Details/RawMovie'; +import RawMovie from 'domains/Person/api/Details/types/RawMovie'; export default interface RawResponse { id: number; diff --git a/src/domains/Person/api/Details/Response.ts b/src/domains/Person/api/Details/types/Response.ts similarity index 90% rename from src/domains/Person/api/Details/Response.ts rename to src/domains/Person/api/Details/types/Response.ts index a6cc99f..03b48fa 100644 --- a/src/domains/Person/api/Details/Response.ts +++ b/src/domains/Person/api/Details/types/Response.ts @@ -1,5 +1,5 @@ // import Recommendations from 'domains/Movie/api/Recommendations/Response'; -import Movie from 'domains/Person/api/Details/Movie'; +import Movie from 'domains/Person/api/Details/types/Movie'; export default interface Response { id: number; diff --git a/src/domains/Search/api/Multi/index.ts b/src/domains/Search/api/Multi/index.ts index 1e2c3ea..0895f40 100644 --- a/src/domains/Search/api/Multi/index.ts +++ b/src/domains/Search/api/Multi/index.ts @@ -13,9 +13,9 @@ import { getTitle, } from 'shared/utils/Entity'; -import Params from 'domains/Search/api/Multi/Params'; -import RawResponse from 'domains/Search/api/Multi/RawResponse'; -import Response from 'domains/Search/api/Multi/Response'; +import Params from 'domains/Search/api/Multi/types/Params'; +import RawResponse from 'domains/Search/api/Multi/types/RawResponse'; +import Response from 'domains/Search/api/Multi/types/Response'; const Multi = async (params: Params): Promise => { const response = await rawPopular(params); diff --git a/src/domains/Search/api/Multi/Movie.ts b/src/domains/Search/api/Multi/types/Movie.ts similarity index 70% rename from src/domains/Search/api/Multi/Movie.ts rename to src/domains/Search/api/Multi/types/Movie.ts index 93362b9..e3b4ec8 100644 --- a/src/domains/Search/api/Multi/Movie.ts +++ b/src/domains/Search/api/Multi/types/Movie.ts @@ -1,4 +1,4 @@ -import MovieDetails from 'domains/Movie/api/Details/Response'; +import MovieDetails from 'domains/Movie/api/Details/types/Response'; export default interface Movie extends MovieDetails { character: string; diff --git a/src/domains/Search/api/Multi/Params.ts b/src/domains/Search/api/Multi/types/Params.ts similarity index 100% rename from src/domains/Search/api/Multi/Params.ts rename to src/domains/Search/api/Multi/types/Params.ts diff --git a/src/domains/Search/api/Multi/RawMovie.ts b/src/domains/Search/api/Multi/types/RawMovie.ts similarity index 84% rename from src/domains/Search/api/Multi/RawMovie.ts rename to src/domains/Search/api/Multi/types/RawMovie.ts index fb5ffa9..9e5feb7 100644 --- a/src/domains/Search/api/Multi/RawMovie.ts +++ b/src/domains/Search/api/Multi/types/RawMovie.ts @@ -1,4 +1,4 @@ -import RawMovieDetails from 'domains/Movie/api/Details/RawResponse'; +import RawMovieDetails from 'domains/Movie/api/Details/types/RawResponse'; export default interface RawMovie extends RawMovieDetails { poster_path?: string; diff --git a/src/domains/Search/api/Multi/RawResponse.ts b/src/domains/Search/api/Multi/types/RawResponse.ts similarity index 89% rename from src/domains/Search/api/Multi/RawResponse.ts rename to src/domains/Search/api/Multi/types/RawResponse.ts index 5ca6a8f..b2b12e4 100644 --- a/src/domains/Search/api/Multi/RawResponse.ts +++ b/src/domains/Search/api/Multi/types/RawResponse.ts @@ -1,5 +1,5 @@ // import Recommendations from 'domains/Movie/api/Recommendations/RawResponse'; -import RawMovie from 'domains/Person/api/Details/RawMovie'; +import RawMovie from 'domains/Person/api/Details/types/RawMovie'; export default interface RawResponse { poster_path?: string; diff --git a/src/domains/Search/api/Multi/Response.ts b/src/domains/Search/api/Multi/types/Response.ts similarity index 88% rename from src/domains/Search/api/Multi/Response.ts rename to src/domains/Search/api/Multi/types/Response.ts index 7e944e7..afe5c54 100644 --- a/src/domains/Search/api/Multi/Response.ts +++ b/src/domains/Search/api/Multi/types/Response.ts @@ -1,5 +1,5 @@ // import Recommendations from 'domains/Movie/api/Recommendations/Response'; -import Movie from 'domains/Person/api/Details/Movie'; +import Movie from 'domains/Person/api/Details/types/Movie'; export default interface Response { poster?: string; diff --git a/src/domains/Tv/api/Credits/Response.ts b/src/domains/Tv/api/Credits/Response.ts deleted file mode 100644 index 37fc3d9..0000000 --- a/src/domains/Tv/api/Credits/Response.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Cast from 'domains/Tv/api/Credits/dtos/Cast'; -import Crew from 'domains/Tv/api/Credits/dtos/Crew'; - -export default interface Response { - cast: Cast[]; - crew: Crew[]; -} diff --git a/src/domains/Tv/api/Credits/dtos/Cast.ts b/src/domains/Tv/api/Credits/types/Cast.ts similarity index 100% rename from src/domains/Tv/api/Credits/dtos/Cast.ts rename to src/domains/Tv/api/Credits/types/Cast.ts diff --git a/src/domains/Tv/api/Credits/dtos/Crew.ts b/src/domains/Tv/api/Credits/types/Crew.ts similarity index 100% rename from src/domains/Tv/api/Credits/dtos/Crew.ts rename to src/domains/Tv/api/Credits/types/Crew.ts diff --git a/src/domains/Tv/api/Credits/RawResponse.ts b/src/domains/Tv/api/Credits/types/RawResponse.ts similarity index 100% rename from src/domains/Tv/api/Credits/RawResponse.ts rename to src/domains/Tv/api/Credits/types/RawResponse.ts diff --git a/src/domains/Tv/api/Credits/types/Response.ts b/src/domains/Tv/api/Credits/types/Response.ts new file mode 100644 index 0000000..91332d6 --- /dev/null +++ b/src/domains/Tv/api/Credits/types/Response.ts @@ -0,0 +1,7 @@ +import Cast from 'domains/Tv/api/Credits/types/Cast'; +import Crew from 'domains/Tv/api/Credits/types/Crew'; + +export default interface Response { + cast: Cast[]; + crew: Crew[]; +} diff --git a/src/domains/Tv/api/Details/index.ts b/src/domains/Tv/api/Details/index.ts index 0fde977..d48ac81 100644 --- a/src/domains/Tv/api/Details/index.ts +++ b/src/domains/Tv/api/Details/index.ts @@ -11,14 +11,14 @@ import { } from 'shared/utils/Entity'; import { EntityType } from 'shared/enums'; -import Params from 'domains/Tv/api/Details/Params'; -import RawResponse from 'domains/Tv/api/Details/RawResponse'; -import Response from 'domains/Tv/api/Details/Response'; -import Recommendations from 'domains/Tv/api/Recommendations/Response'; -import Credits from 'domains/Tv/api/Credits/Response'; - -import Crew from 'domains/Tv/api/Credits/dtos/Crew'; -import Cast from 'domains/Tv/api/Credits/dtos/Cast'; +import Params from 'domains/Tv/api/Details/types/Params'; +import RawResponse from 'domains/Tv/api/Details/types/RawResponse'; +import Response from 'domains/Tv/api/Details/types/Response'; +import Recommendations from 'domains/Tv/api/Recommendations/types/Response'; +import Credits from 'domains/Tv/api/Credits/types/Response'; + +import Crew from 'domains/Tv/api/Credits/types/Crew'; +import Cast from 'domains/Tv/api/Credits/types/Cast'; const Details = async (tvId: number, params?: Params): Promise => { const response = await rawPopular(tvId, params); diff --git a/src/domains/Tv/api/Details/Params.ts b/src/domains/Tv/api/Details/types/Params.ts similarity index 100% rename from src/domains/Tv/api/Details/Params.ts rename to src/domains/Tv/api/Details/types/Params.ts diff --git a/src/domains/Tv/api/Details/RawResponse.ts b/src/domains/Tv/api/Details/types/RawResponse.ts similarity index 77% rename from src/domains/Tv/api/Details/RawResponse.ts rename to src/domains/Tv/api/Details/types/RawResponse.ts index 32511cd..98ec1a9 100644 --- a/src/domains/Tv/api/Details/RawResponse.ts +++ b/src/domains/Tv/api/Details/types/RawResponse.ts @@ -1,5 +1,5 @@ -import Recommendations from 'domains/Tv/api/Recommendations/RawResponse'; -import Credits from 'domains/Tv/api/Credits/RawResponse'; +import Recommendations from 'domains/Tv/api/Recommendations/types/RawResponse'; +import Credits from 'domains/Tv/api/Credits/types/RawResponse'; export default interface RawResponse { poster_path?: string; diff --git a/src/domains/Tv/api/Details/Response.ts b/src/domains/Tv/api/Details/types/Response.ts similarity index 79% rename from src/domains/Tv/api/Details/Response.ts rename to src/domains/Tv/api/Details/types/Response.ts index 59380d7..c4d61ed 100644 --- a/src/domains/Tv/api/Details/Response.ts +++ b/src/domains/Tv/api/Details/types/Response.ts @@ -1,5 +1,5 @@ -import Recommendations from 'domains/Movie/api/Recommendations/Response'; -import Credits from 'domains/Movie/api/Credits/Response'; +import Recommendations from 'domains/Movie/api/Recommendations/types/Response'; +import Credits from 'domains/Movie/api/Credits/types/Response'; export default interface Response { backdrop?: string; diff --git a/src/domains/Tv/api/Popular/index.ts b/src/domains/Tv/api/Popular/index.ts index db9b00a..5cd87e2 100644 --- a/src/domains/Tv/api/Popular/index.ts +++ b/src/domains/Tv/api/Popular/index.ts @@ -9,9 +9,9 @@ import { } from 'shared/utils/Entity'; import { EntityType } from 'shared/enums'; -import Params from 'domains/Tv/api/Popular/Params'; -import RawResponse from 'domains/Tv/api/Popular/RawResponse'; -import Response from 'domains/Tv/api/Popular/Response'; +import Params from 'domains/Tv/api/Popular/types/Params'; +import RawResponse from 'domains/Tv/api/Popular/types/RawResponse'; +import Response from 'domains/Tv/api/Popular/types/Response'; const Popular = async (params?: Params): Promise => { const response = await rawPopular(params); diff --git a/src/domains/Tv/api/Popular/Params.ts b/src/domains/Tv/api/Popular/types/Params.ts similarity index 100% rename from src/domains/Tv/api/Popular/Params.ts rename to src/domains/Tv/api/Popular/types/Params.ts diff --git a/src/domains/Tv/api/Popular/RawResponse.ts b/src/domains/Tv/api/Popular/types/RawResponse.ts similarity index 100% rename from src/domains/Tv/api/Popular/RawResponse.ts rename to src/domains/Tv/api/Popular/types/RawResponse.ts diff --git a/src/domains/Tv/api/Popular/Response.ts b/src/domains/Tv/api/Popular/types/Response.ts similarity index 100% rename from src/domains/Tv/api/Popular/Response.ts rename to src/domains/Tv/api/Popular/types/Response.ts diff --git a/src/domains/Tv/api/Recommendations/RawResponse.ts b/src/domains/Tv/api/Recommendations/types/RawResponse.ts similarity index 100% rename from src/domains/Tv/api/Recommendations/RawResponse.ts rename to src/domains/Tv/api/Recommendations/types/RawResponse.ts diff --git a/src/domains/Tv/api/Recommendations/Response.ts b/src/domains/Tv/api/Recommendations/types/Response.ts similarity index 100% rename from src/domains/Tv/api/Recommendations/Response.ts rename to src/domains/Tv/api/Recommendations/types/Response.ts diff --git a/src/pages/Home/index.tsx b/src/pages/Home/index.tsx index 86ded55..a67eae6 100644 --- a/src/pages/Home/index.tsx +++ b/src/pages/Home/index.tsx @@ -5,8 +5,8 @@ import { useAuth } from 'domains/Auth/hooks'; import { useFavorite } from 'domains/Favorites/hooks'; import { NowPlaying, Popular } from 'domains/Movie/api'; import { Popular as TvPopular } from 'domains/Tv/api'; -import MovieResponse from 'domains/Movie/api/Popular/Response'; -import TvPopularResponse from 'domains/Tv/api/Popular/Response'; +import MovieResponse from 'domains/Movie/api/Popular/types/Response'; +import TvPopularResponse from 'domains/Tv/api/Popular/types/Response'; import { ColumnLayout } from 'components'; import { Footer, Header, Highlights, EntityImageList } from 'containers'; diff --git a/src/pages/Movie/index.tsx b/src/pages/Movie/index.tsx index 937d8f5..c6d9792 100644 --- a/src/pages/Movie/index.tsx +++ b/src/pages/Movie/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import Params from 'pages/Movie/dtos/Params'; -import MovieDetails from 'domains/Movie/api/Details/Response'; +import MovieDetails from 'domains/Movie/api/Details/types/Response'; import { Color } from 'shared/enums'; import { Details } from 'domains/Movie/api'; import { useAuth } from 'domains/Auth/hooks'; diff --git a/src/pages/Person/index.tsx b/src/pages/Person/index.tsx index 9fc8bb3..ddb8b83 100644 --- a/src/pages/Person/index.tsx +++ b/src/pages/Person/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import Params from 'pages/Person/dtos/Params'; -import PersonDetails from 'domains/Person/api/Details/Response'; +import PersonDetails from 'domains/Person/api/Details/types/Response'; import { Color } from 'shared/enums'; import { Details } from 'domains/Person/api'; import { useAuth } from 'domains/Auth/hooks'; diff --git a/src/pages/Tv/index.tsx b/src/pages/Tv/index.tsx index c9ae946..0b06d9a 100644 --- a/src/pages/Tv/index.tsx +++ b/src/pages/Tv/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; import Params from 'pages/Tv/dtos/Params'; -import MovieDetails from 'domains/Tv/api/Details/Response'; +import MovieDetails from 'domains/Tv/api/Details/types/Response'; import { Color } from 'shared/enums'; import { Details } from 'domains/Tv/api'; import { useAuth } from 'domains/Auth/hooks'; diff --git a/src/shared/utils/formatDate.ts b/src/shared/utils/formatDate.ts index cd3c1c8..eae83a4 100644 --- a/src/shared/utils/formatDate.ts +++ b/src/shared/utils/formatDate.ts @@ -1,4 +1,4 @@ -import FormatDate from 'shared/utils/dtos/FormatDate'; +import FormatDate from 'shared/utils/types/FormatDate'; const formatDate = ({ value }: FormatDate): string => { if (!value) { diff --git a/src/shared/utils/formatTmdbImage.ts b/src/shared/utils/formatTmdbImage.ts index a073874..ce451b7 100644 --- a/src/shared/utils/formatTmdbImage.ts +++ b/src/shared/utils/formatTmdbImage.ts @@ -1,4 +1,4 @@ -import FormatTmdbImage from 'shared/utils/dtos/FormatTmdbImage'; +import FormatTmdbImage from 'shared/utils/types/FormatTmdbImage'; import TmdbImageSize from 'shared/utils/enums/TmdbImageSize'; const formatTmdbImage = ({ diff --git a/src/shared/utils/dtos/FormatDate.ts b/src/shared/utils/types/FormatDate.ts similarity index 100% rename from src/shared/utils/dtos/FormatDate.ts rename to src/shared/utils/types/FormatDate.ts diff --git a/src/shared/utils/dtos/FormatTmdbImage.ts b/src/shared/utils/types/FormatTmdbImage.ts similarity index 100% rename from src/shared/utils/dtos/FormatTmdbImage.ts rename to src/shared/utils/types/FormatTmdbImage.ts