mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 20:31:40 +03:00
Add network to useSettings hook
This commit is contained in:
parent
078d4991b3
commit
be844f18f2
@ -44,6 +44,7 @@ export const SettingsContext = createContext({
|
||||
});
|
||||
|
||||
export const SettingsProvider = ({ channel, children }) => {
|
||||
const [network, setNetwork] = useState('bitcoin');
|
||||
const [channelData, setChannelData] = useState(null);
|
||||
const [loadedBtc, setLoadedBtc] = useState(false);
|
||||
const [loadedSettings, setLoadedSettings] = useState(false);
|
||||
@ -255,6 +256,8 @@ export const SettingsProvider = ({ channel, children }) => {
|
||||
return (
|
||||
<Provider
|
||||
value={{
|
||||
network,
|
||||
setNetwork,
|
||||
loadedBtc,
|
||||
setLoadedBtc,
|
||||
loadedSettings,
|
||||
|
Loading…
Reference in New Issue
Block a user