From a03f1dc2ac25579df30e8cb59d2703110c3e564d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 22:37:41 +0000 Subject: lint: Lint and format the entire repo with the new configs --- apps/mobile/lib/settings.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/mobile/lib/settings.ts') diff --git a/apps/mobile/lib/settings.ts b/apps/mobile/lib/settings.ts index 21f40528..13de067e 100644 --- a/apps/mobile/lib/settings.ts +++ b/apps/mobile/lib/settings.ts @@ -4,14 +4,15 @@ import { useStorageState } from "./storage-state"; const SETTING_NAME = "settings"; -export type Settings = { +export interface Settings { apiKey?: string; address: string; -}; +} export default function useAppSettings() { - let [[isLoading, settings], setSettings] = - useStorageState(SETTING_NAME); + const [settingsState, setSettings] = useStorageState(SETTING_NAME); + const [isLoading] = settingsState; + let [, settings] = settingsState; settings ||= { address: "https://demo.hoarder.app", -- cgit v1.2.3-70-g09d2