From cecc63eb7e6bbfbca220a433b075da386646aa4a Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sun, 16 Apr 2023 19:44:16 +0800 Subject: [PATCH] Removed unused code --- src/Components/PublicNote/PublicNote.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Components/PublicNote/PublicNote.tsx b/src/Components/PublicNote/PublicNote.tsx index 9eef3cc..87e313e 100644 --- a/src/Components/PublicNote/PublicNote.tsx +++ b/src/Components/PublicNote/PublicNote.tsx @@ -1,22 +1,9 @@ import * as React from "react"; import { View, Text, TextInput, ScrollView } from "react-native"; import styles from "../../styles"; -import { NoteProps, RootDrawerParamList } from "../../Interfaces/Interfaces"; -import ButtonCentered from "../Buttons/ButtonCentered/ButtonCentered"; -import { useQueryClient, useMutation } from "react-query"; -import { DeleteNote } from "../Api/Api"; -import { useNavigation } from "@react-navigation/native"; +import { NoteProps } from "../../Interfaces/Interfaces"; export default function PublicNote(props: NoteProps) { - const navigation = useNavigation(); - const queryClient = useQueryClient(); - const mutation = useMutation({ - mutationFn: DeleteNote, - onSuccess: () => { - queryClient.invalidateQueries("notes"); - queryClient.invalidateQueries("public_notes"); - }, - }); return (