passing the reducer_countries json
This commit is contained in:
parent
7dc6557f6e
commit
fecc6d4afc
|
|
@ -1,7 +1,7 @@
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import { useUser } from "../../hooks/useUser.jsx";
|
import { useUser } from "../../hooks/useUser.jsx";
|
||||||
import CountriesJSON from "../../data/countries/countries.json";
|
import CountriesJSON from "../../data/countries/countries_reduced.json";
|
||||||
|
|
||||||
export default function CountrySelect({ label }) {
|
export default function CountrySelect({ label }) {
|
||||||
const { country, changeCountry } = useUser();
|
const { country, changeCountry } = useUser();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { createContext, useEffect, useState } from "react";
|
import { createContext, useEffect, useState } from "react";
|
||||||
import CountriesJSON from "../data/countries/countries.json";
|
import CountriesJSON from "../data/countries/countries_reduced.json";
|
||||||
|
|
||||||
export const UserContext = createContext();
|
export const UserContext = createContext();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user