From 20cc80ad4273a576ecd59dba356c39b2dbb9d938 Mon Sep 17 00:00:00 2001 From: Wolfie <32025746+Wolfkid200444@users.noreply.github.com> Date: Mon, 11 Mar 2024 00:11:59 -0400 Subject: [PATCH] Remove Console.log / Added Type for props --- .../holynotes/components/modals/NotebookCreateModal.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx b/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx index 4a49673ed..743713e57 100644 --- a/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx +++ b/src/plugins/holynotes/components/modals/NotebookCreateModal.tsx @@ -4,18 +4,17 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalRoot, ModalSize } from "@utils/modal"; +import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize } from "@utils/modal"; import { Button, React, Text, TextInput } from "@webpack/common"; import noteHandler from "plugins/holynotes/noteHandler"; -export default props => { +export default (props: ModalProps & { onClose: () => void }) => { const [notebookName, setNotebookName] = React.useState(""); const handleCreateNotebook = React.useCallback(() => { if (notebookName !== "") noteHandler.newNoteBook(notebookName); props.onClose(); }, [notebookName]); - console.log(props); return (