code refactoring

This commit is contained in:
2023-11-02 10:18:32 +01:00
parent 00b3fccbdc
commit f49f072963
6 changed files with 49 additions and 39 deletions

View File

@@ -23,13 +23,13 @@ export const isDownloadingState = atom({
default: false
})
// export const freeSpaceBytesState = selector({
// key: 'freeSpaceBytesState',
// get: async ({ get }) => {
// const res = await get(rpcClientState).freeSpace()
// return res.result
// }
// })
export const freeSpaceBytesState = selector({
key: 'freeSpaceBytesState',
get: async ({ get }) => {
const res = await get(rpcClientState).freeSpace()
return res.result
}
})
export const availableDownloadPathsState = selector({
key: 'availableDownloadPathsState',