mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
update
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React, { createContext } from 'react';
|
||||
|
||||
const data = require('../../data.json');
|
||||
console.log('d', data);
|
||||
|
||||
interface GithubContextType {
|
||||
username: string;
|
||||
@@ -13,7 +12,7 @@ const GithubProvider: React.FC = ({
|
||||
children,
|
||||
}) => (
|
||||
<GithubContext.Provider
|
||||
value={{ data }}
|
||||
value={{ ...data }}
|
||||
>
|
||||
{children}
|
||||
</GithubContext.Provider>
|
||||
|
||||
Reference in New Issue
Block a user