mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Pass object instead of array in context provider
This commit is contained in:
@@ -16,8 +16,8 @@ import Project from './components/project';
|
||||
import Blog from './components/blog';
|
||||
|
||||
function App() {
|
||||
const [theme] = useContext(ThemeContext);
|
||||
const [, setLoading] = useContext(LoadingContext);
|
||||
const { theme } = useContext(ThemeContext);
|
||||
const { setLoading } = useContext(LoadingContext);
|
||||
const [profile, setProfile] = useState(null);
|
||||
const [repo, setRepo] = useState(null);
|
||||
const [error, setError] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user