We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e36c1fc commit 01c0830Copy full SHA for 01c0830
app/modals/AddModal.tsx
@@ -31,20 +31,20 @@ const AddModal: React.FC<AddModalProps> = React.memo(({ setOpen }) => {
31
});
32
33
// Submit form data and save to database
34
- const handleSubmit = useCallback((event: FormElement) => {
+ const handleSubmit = (event: FormElement) => {
35
event.preventDefault();
36
addApp(fields);
37
setOpen(false); // Close modal on submit
38
- }, []);
+ };
39
40
// Handle form changes
41
- const handleChange = useCallback((event: InputElement) => {
+ const handleChange = (event: InputElement) => {
42
const { name, value } = event.target;
43
setFields({
44
...fields,
45
[name]: value,
46
47
48
49
const { database, URI, name, description } = fields;
50
0 commit comments