style: rename hook for the global usage

This commit is contained in:
Julien Calixte
2024-10-27 12:34:26 +01:00
parent 84789393ad
commit 786286391a
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import { prepareNoteCache } from '@/modules/note/cache/prepareNoteCache'
import { queryFileContent } from '@/modules/repo/services/repo'
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
export const useOfflineNote = () => {
export const useOfflineNotes = () => {
const store = useUserRepoStore()
const totalOfNotes = computed(() => store.files.length)

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import { useOfflineNote } from '@/hooks/useOfflineNote.hook'
import { useOfflineNotes } from '@/hooks/useOfflineNotes.hook'
const { cacheAllNotes, isLoading, totalOfNotes, noteCompleted } =
useOfflineNote()
useOfflineNotes()
const confirmBeforeCachingAllNotes = () => {
confirm('Do you want to cache all notes?')