mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
Add network to useSettings hook
This commit is contained in:
parent
278c0d63fa
commit
d3650d41eb
@ -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