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