diff --git a/package.json b/package.json
index 595f8b7..3526e28 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,6 @@
"dependencies": {
"@tauri-apps/api": "1.5.3",
"dayjs": "1.11.10",
- "svelte-icons": "2.1.0",
"ts-toolbelt": "^9.6.0"
},
"devDependencies": {
diff --git a/src/App.svelte b/src/App.svelte
index 1de0dbe..cdd02b6 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -6,14 +6,17 @@
import List from './view/List.svelte';
import { todaysHighlight } from './store';
import { exit } from '@tauri-apps/api/process';
+ import Spinner from './lib/components/Spinner.svelte';
+ import { fade } from 'svelte/transition';
enum AppState {
+ Loading,
Menu,
Record,
List
}
- let state: AppState = AppState.Menu;
+ let state: AppState = AppState.Loading;
const init = async () => {
const result = await commands.getTodaysHighlight();
@@ -36,7 +39,11 @@
const toMenu = () => (state = AppState.Menu);
-{#if state === AppState.Menu}
+{#if state === AppState.Loading}
+
+
+
+{:else if state === AppState.Menu}