remove Provider

This commit is contained in:
2023-06-26 00:14:44 -04:00
parent 2fb6e8506b
commit f54b42d0ad
2 changed files with 10 additions and 26 deletions
+1 -3
View File
@@ -1,5 +1,5 @@
import { useEffect, useMemo } from "react";
import { atom as $, useAtom, Atom, PrimitiveAtom, useAtomValue, useSetAtom, Provider } from 'jotai';
import { atom as $, useAtom, Atom, PrimitiveAtom, useAtomValue, useSetAtom, } from 'jotai';
type PickerInput = {
$options?:PrimitiveAtom<Array<string>>,
@@ -36,7 +36,6 @@ export function Picker({
},[url, isEnabled])
return (
<Provider>
<div>
{isLoading
?
@@ -50,6 +49,5 @@ export function Picker({
</select>
}
</div>
</Provider>
);
}