diff --git a/package.json b/package.json index 1f4e3a6..96526b3 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,8 @@ "dependencies": { "react": "^16.9.0", "react-dom": "^16.9.0", + "react-github-btn": "^1.0.6", + "smooth-scroll-into-view-if-needed": "^1.1.23", "styled-components": "^4.3.2", "styled-reset": "^4.0.0" }, diff --git a/src/App.js b/src/App.js index 465894f..712daad 100644 --- a/src/App.js +++ b/src/App.js @@ -3,8 +3,10 @@ import ColorTitle from './components/ColorTitle'; import Color from './components/Color'; import ColorParam from './components/ColorParam'; import InfoModal from './components/InfoModal'; +import IconInfo from './components/IconInfo'; import Header from './components/Header'; import styled from 'styled-components'; +import useModal from './hooks'; import colors from './assets/colors.json'; import allColors from './assets/colors.full.json'; const Wrapper = styled.section` @@ -34,6 +36,7 @@ const SelectedColor = JSON.parse(localStorage.getItem('SELECTED_COLOR') || 'null }; const TheColors = process.env.NODE_ENV === 'production' ? allColors : colors; const App = () => { + const { visible: modalVisible, showModal, closeModal } = useModal(); const [currColor, setCurrColor] = useState(SelectedColor); useEffect(() => { document.body.style.backgroundColor = currColor.hex; @@ -50,9 +53,10 @@ const App = () => {