mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
notes, tablet sort, grocery list and other fixes
This commit is contained in:
@ -5,7 +5,7 @@ import { IFeedback } from "@/contexts/FeedbackContext";
|
||||
import { IBrainDump } from "@/contexts/DumpContext";
|
||||
|
||||
export const useCreateNote = () => {
|
||||
const { user: currentUser, profileData } = useAuthContext();
|
||||
const { user: currentUser } = useAuthContext();
|
||||
const queryClients = useQueryClient();
|
||||
|
||||
return useMutation({
|
||||
|
||||
@ -13,6 +13,7 @@ export const useGetNotes = () => {
|
||||
const snapshot = await firestore()
|
||||
.collection("BrainDumps")
|
||||
.where("creatorId", "==", currentUser?.uid)
|
||||
.orderBy("updatedAt", "desc")
|
||||
.get();
|
||||
|
||||
return snapshot.docs.map((doc) => ({
|
||||
|
||||
Reference in New Issue
Block a user