-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd10752
commit a21384d
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |