Skip to content

Commit

Permalink
Merge pull request #103 from 90lucasgabriel/feature/WJ-102
Browse files Browse the repository at this point in the history
WJ-102 - Covert Movie component to EntityImage
  • Loading branch information
90lucasgabriel committed Nov 7, 2020
2 parents 085d5fe + b931178 commit ead7067
Show file tree
Hide file tree
Showing 152 changed files with 967 additions and 896 deletions.
2 changes: 1 addition & 1 deletion src/components/Button/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Props> = ({
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Input/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/Input/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Props> = ({
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions src/components/Movie/dtos/ContainerProps.ts

This file was deleted.

70 changes: 0 additions & 70 deletions src/components/Movie/index.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions src/components/Movie/styles.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/MovieHighlight/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/components/MovieHighlight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Props> = ({ showOverview = true, ...movie }) => {
Expand Down
File renamed without changes.
8 changes: 0 additions & 8 deletions src/components/Person/dtos/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/components/Person/index.tsx

This file was deleted.

61 changes: 0 additions & 61 deletions src/components/Person/styles.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/Profile/dtos/ContainerProps.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/Profile/dtos/index.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/components/Profile/index.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions src/components/Profile/styles.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/SearchInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const SearchInput: React.FC<InputHTMLAttributes<HTMLInputElement>> = ({
<Container>
<Input
type="text"
placeholder="Pesquise por filmes ou séries"
placeholder="Pesquise filmes, séries ou pessoas"
autoFocus
{...rest}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchInput/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Color, Size } from 'shared/enums';
export const Container = styled.div`
display: flex;
flex: 1;
padding: ${Size.Default};
padding: ${Size.Default} 0;
`;

export const Input = styled.input`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
@@ -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<TooltipProps> = ({ value, children, ...rest }) => {
Expand Down
File renamed without changes.
Loading

0 comments on commit ead7067

Please sign in to comment.