Skip to content

Commit

Permalink
Created PalleteDisplay Component
Browse files Browse the repository at this point in the history
  • Loading branch information
j-barreiros committed Jan 7, 2023
1 parent bd10752 commit a21384d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/PalleteDisplay/PalleteDisplay.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Style
import { useContext } from "react";
import { PalleteContext } from "../../context/PalletesContext";
import PalleteItem from "./PalleteItem/PalleteItem";
import StyledPalleteDisplay from "./StyledPalleteDisplay"

const PalleteDisplay = () => {
const palleteContext = useContext(PalleteContext)
const testeArray = [1,2,3,4,5,6];
return (
<StyledPalleteDisplay>
{palleteContext.map(p => <PalleteItem pallete={p}/>)}
</StyledPalleteDisplay>
)
}

export default PalleteDisplay;
7 changes: 7 additions & 0 deletions src/components/PalleteDisplay/StyledPalleteDisplay.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styled from "styled-components";

const StyledPalleteDisplay = styled.section`
`

export default StyledPalleteDisplay;

0 comments on commit a21384d

Please sign in to comment.