Format file

This commit is contained in:
Nicola Benaglia 2025-04-12 18:19:21 +02:00
parent 9b675f470d
commit 52c733f48a

View File

@ -1,53 +1,57 @@
import { atom, selectorFamily } from 'recoil'; import { atom, selectorFamily } from 'recoil';
export const sortablePinnedAppsAtom = atom({ export const sortablePinnedAppsAtom = atom({
key: 'sortablePinnedAppsFromAtom', key: 'sortablePinnedAppsFromAtom',
default: [{ default: [
{
name: 'Q-Tube', name: 'Q-Tube',
service: 'APP' service: 'APP',
}, { },
{
name: 'Q-Mail', name: 'Q-Mail',
service: 'APP' service: 'APP',
}, { },
{
name: 'Q-Share', name: 'Q-Share',
service: 'APP' service: 'APP',
}, { },
{
name: 'Q-Fund', name: 'Q-Fund',
service: 'APP' service: 'APP',
}, { },
{
name: 'Q-Shop', name: 'Q-Shop',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Trade', name: 'Q-Trade',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Support', name: 'Q-Support',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Manager', name: 'Q-Manager',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Blog', name: 'Q-Blog',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Mintership', name: 'Q-Mintership',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Wallets', name: 'Q-Wallets',
service: 'APP' service: 'APP',
}, },
{ {
name: 'Q-Search', name: 'Q-Search',
service: 'APP' service: 'APP',
}, },
], ],
}); });
export const canSaveSettingToQdnAtom = atom({ export const canSaveSettingToQdnAtom = atom({
@ -69,12 +73,12 @@ export const oldPinnedAppsAtom = atom({
key: 'oldPinnedAppsAtom', key: 'oldPinnedAppsAtom',
default: [], default: [],
}); });
export const isUsingImportExportSettingsAtom = atom({ export const isUsingImportExportSettingsAtom = atom({
key: 'isUsingImportExportSettingsAtom', key: 'isUsingImportExportSettingsAtom',
default: null, default: null,
}); });
export const fullScreenAtom = atom({ export const fullScreenAtom = atom({
key: 'fullScreenAtom', key: 'fullScreenAtom',
default: false, default: false,
@ -117,7 +121,9 @@ export const resourceDownloadControllerAtom = atom({
export const resourceKeySelector = selectorFamily({ export const resourceKeySelector = selectorFamily({
key: 'resourceKeySelector', key: 'resourceKeySelector',
get: (key) => ({ get }) => { get:
(key) =>
({ get }) => {
const resources = get(resourceDownloadControllerAtom); const resources = get(resourceDownloadControllerAtom);
return resources[key] || null; // Return the value for the key or null if not found return resources[key] || null; // Return the value for the key or null if not found
}, },
@ -130,7 +136,9 @@ export const blobControllerAtom = atom({
export const blobKeySelector = selectorFamily({ export const blobKeySelector = selectorFamily({
key: 'blobKeySelector', key: 'blobKeySelector',
get: (key) => ({ get }) => { get:
(key) =>
({ get }) => {
const blobs = get(blobControllerAtom); const blobs = get(blobControllerAtom);
return blobs[key] || null; // Return the value for the key or null if not found return blobs[key] || null; // Return the value for the key or null if not found
}, },
@ -148,7 +156,9 @@ export const addressInfoControllerAtom = atom({
export const addressInfoKeySelector = selectorFamily({ export const addressInfoKeySelector = selectorFamily({
key: 'addressInfoKeySelector', key: 'addressInfoKeySelector',
get: (key) => ({ get }) => { get:
(key) =>
({ get }) => {
const userInfo = get(addressInfoControllerAtom); const userInfo = get(addressInfoControllerAtom);
return userInfo[key] || null; // Return the value for the key or null if not found return userInfo[key] || null; // Return the value for the key or null if not found
}, },