@@ -23,7 +34,13 @@
You need to log in to sync your Notes.
-
+ {#if localStorage.getItem('isLoggedIn') == 'true'}
+
+ {:else}
+
+ Login
+
+ {/if}
- {#if isOpen}
+ {#if localStorage.getItem('isLoggedIn') == 'true'}
diff --git a/offline/src/types/note.type.ts b/offline/src/types/note.type.ts
index 9373210..344867f 100644
--- a/offline/src/types/note.type.ts
+++ b/offline/src/types/note.type.ts
@@ -13,4 +13,16 @@ export type PaginatedNotes = {
total: number,
current_page: number,
per_page: 12,
-}
\ No newline at end of file
+}
+
+export interface User {
+ id: number;
+ name: string;
+ email: string;
+ password: string;
+}
+export interface Database {
+ users: User[];
+ notes: NoteType[];
+ paginatednotes: PaginatedNotes[];
+ }
\ No newline at end of file