Skip to content

Commit 6c45d9b

Browse files
committed
Update exports
1 parent b3b2909 commit 6c45d9b

File tree

16 files changed

+34
-52
lines changed

16 files changed

+34
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.qodo
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as React from 'react';
22
import { Route, Routes } from 'react-router-dom';
3-
import Homepage from '../pages/home/homePage';
4-
import Shows from '../pages/shows/shows';
5-
import Movies from '../pages/movies/movies';
6-
import RecentlyAdded from '../pages/recently-added/recentlyAdded';
7-
import MyList from '../pages/my-list/myList';
3+
import { Homepage } from '../pages/home/homePage';
4+
import { Shows } from '../pages/shows/shows';
5+
import { Movies } from '../pages/movies/movies';
6+
import { RecentlyAdded } from '../pages/recently-added/recentlyAdded';
7+
import { MyList } from '../pages/my-list/myList';
88
import { GlobalStyle } from '../styles/global';
99

10-
const App = () => {
10+
export const App = () => {
1111
return (
1212
<>
1313
<GlobalStyle />
@@ -21,5 +21,3 @@ const App = () => {
2121
</>
2222
);
2323
};
24-
25-
export default App;

netflix-create-react-vite-app/src/components/card/back-card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type BackCardProps = {
1818

1919
const getRoundedScore = (score: number): number => Math.floor(score * 10) / 10;
2020

21-
const BackCard = ({ overview, title, vote_average }: BackCardProps) => {
21+
export const BackCard = ({ overview, title, vote_average }: BackCardProps) => {
2222
return (
2323
<CardBack>
2424
<CardBackContainer>
@@ -33,5 +33,3 @@ const BackCard = ({ overview, title, vote_average }: BackCardProps) => {
3333
</CardBack>
3434
);
3535
};
36-
37-
export default BackCard;

netflix-create-react-vite-app/src/components/card/card.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as React from 'react';
22
import { FC } from 'react';
33
import { CardContainer, FLipCard } from './card.styles';
4-
import FrontCard from './front-card';
5-
import BackCard from './back-card';
4+
import { BackCard } from './back-card';
5+
import { FrontCard } from './front-card';
66

77
type CardProps = {
88
src: string;
@@ -12,7 +12,13 @@ type CardProps = {
1212
vote_average: number;
1313
};
1414

15-
const Card = ({ src, alt, overview, title, vote_average }: CardProps) => {
15+
export const Card = ({
16+
src,
17+
alt,
18+
overview,
19+
title,
20+
vote_average,
21+
}: CardProps) => {
1622
return (
1723
<CardContainer>
1824
<FLipCard>
@@ -26,5 +32,3 @@ const Card = ({ src, alt, overview, title, vote_average }: CardProps) => {
2632
</CardContainer>
2733
);
2834
};
29-
30-
export default Card;

netflix-create-react-vite-app/src/components/card/front-card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ type FrontCardProps = {
77
alt: string;
88
};
99

10-
const FrontCard = ({ src, alt }: FrontCardProps) => {
10+
export const FrontCard = ({ src, alt }: FrontCardProps) => {
1111
return (
1212
<CardFront>
1313
<StyledImg src={src} alt={alt} />
1414
</CardFront>
1515
);
1616
};
17-
18-
export default FrontCard;

netflix-create-react-vite-app/src/components/movie-list/movieList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { imageUrl } from '../../utils/api';
2-
import Card from '../card/card';
2+
import { Card } from '../card/card';
33
import { useTranslation } from 'react-i18next';
44
import { MovieResult } from '../../utils/types/types';
55

netflix-create-react-vite-app/src/components/navbarmenu/navbarheader/nav-items.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type navItemsProps = {
77
children: React.ReactNode;
88
};
99

10-
const NavItems = ({ children, to }: navItemsProps) => {
10+
export const NavItems = ({ children, to }: navItemsProps) => {
1111
const { t } = useTranslation();
1212

1313
return (
@@ -16,5 +16,3 @@ const NavItems = ({ children, to }: navItemsProps) => {
1616
</li>
1717
);
1818
};
19-
20-
export default NavItems;

netflix-create-react-vite-app/src/components/navbarmenu/navbarheader/navbarHeader.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { FC } from 'react';
2-
import SearchBar from './search-bar/searchBar';
3-
import NavItems from './nav-items';
2+
import { SearchBar } from './search-bar/searchBar';
3+
import { NavItems } from './nav-items';
44
import { NavbarMenu, NavList, BrandContainer } from './navbar-styles';
55
import { useTranslation } from 'react-i18next';
66

@@ -9,7 +9,7 @@ export type navbarHeaderProps = {
99
value: string;
1010
};
1111

12-
const NavbarHeader = ({ onChange, value }: navbarHeaderProps) => {
12+
export const NavbarHeader = ({ onChange, value }: navbarHeaderProps) => {
1313
const { t } = useTranslation();
1414

1515
return (
@@ -40,5 +40,3 @@ const NavbarHeader = ({ onChange, value }: navbarHeaderProps) => {
4040
</NavbarMenu>
4141
);
4242
};
43-
44-
export default NavbarHeader;

netflix-create-react-vite-app/src/components/navbarmenu/navbarheader/search-bar/searchBar.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type searchProps = {
77
value: string;
88
};
99

10-
const SearchBar = ({ value, onChange }: searchProps) => {
10+
export const SearchBar = ({ value, onChange }: searchProps) => {
1111
const { t } = useTranslation();
1212
return (
1313
<NavbarSearch>
@@ -20,5 +20,3 @@ const SearchBar = ({ value, onChange }: searchProps) => {
2020
</NavbarSearch>
2121
);
2222
};
23-
24-
export default SearchBar;
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { SpinnerWrapper } from './spinner.styles';
22
import React from 'react';
33

4-
const Spinner = () => {
4+
export const Spinner = () => {
55
return <SpinnerWrapper />;
66
};
7-
8-
export default Spinner;

0 commit comments

Comments
 (0)