diff --git a/package.json b/package.json index d3caed22..c187af8f 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "@ant-design/icons": "^4.2.2", "@testing-library/jest-dom": "^4.2.4", "@testing-library/user-event": "^7.1.2", + "@theme-toggles/react": "^4.1.0", "dayjs": "^1.9.3", "html-react-parser": "^1.4.0", "react": "^16.13.1", diff --git a/src/App.js b/src/App.js index a44a5351..53062e07 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,6 @@ -import React, { useState } from 'react'; +import React, { useState, useContext } from 'react'; import { View } from 'react-native'; +import { ThemeContext } from './Context/ThemeContext'; import Header from './Components/Header'; import Content from './Components/Content'; import Footer from './Components/Footer'; @@ -14,8 +15,17 @@ function App() { 'EVENTS', 'CONTRIBUTE', ]; + const { colors } = useContext(ThemeContext); return ( - +