Skip to content

Commit

Permalink
Adicionando uma nova forma de importacao dos componntes para deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Benevanio committed Feb 22, 2023
1 parent 38136cf commit 4ff1806
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
9 changes: 4 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* eslint-disable react-hooks/exhaustive-deps */

import './App.css';

import { AnimeList } from "./Components/AnimeList";
import { AnimeInfo } from "./Components/AnimeInfo";
import { AddToList } from "./Components/AddToList";
import { RemoveFromList } from "./Components/RemoveFromList";
import AnimeList from "./Components/AnimeList";
import AnimeInfo from "./Components/AnimeInfo";
import AddToList from "./Components/AddToList";
import RemoveFromList from "./Components/RemoveFromList";
import React, { useEffect, useState } from 'react';

function App() {
Expand Down
6 changes: 4 additions & 2 deletions src/components/AddToList.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react'

export const AddToList = () => {
const AddToList = () => {
return (
<>
<div className="mylist">
<p>Add To List +</p>
</div>
</>
)
}
}

export default AddToList
6 changes: 4 additions & 2 deletions src/components/AnimeInfo.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

export const AnimeInfo = (props) => {
const AnimeInfo = ({props}) => {
const { title, images: { jpg: { large_image_url } }, source, rank, score, popularity, members, status, rating, duration } = props.animeInfo
return (
<>
Expand All @@ -20,4 +20,6 @@ export const AnimeInfo = (props) => {
</div>
</>
)
}
}

export default AnimeInfo
4 changes: 3 additions & 1 deletion src/components/AnimeList.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

export const AnimeList = ({ animelist,setAnimeInfo,animeComponent,handleList}) => {
const AnimeList = ({ animelist,setAnimeInfo,animeComponent,handleList}) => {
const AddToList=animeComponent;
return (
<>
Expand Down Expand Up @@ -31,3 +31,5 @@ export const AnimeList = ({ animelist,setAnimeInfo,animeComponent,handleList}) =
</>
)
}

export default AnimeList
12 changes: 7 additions & 5 deletions src/components/RemoveFromList.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React from 'react'

export const RemoveFromList = () => {
const RemoveFromList = () => {
return (
<>
<div className="mylist">
<div className="mylist">
<p>Remove From List -</p>
</div>
</>
</div>
</>
)
}
}

export default RemoveFromList

0 comments on commit 4ff1806

Please sign in to comment.