Update RightPaneForm.tsx

This commit is contained in:
MokireddySampath 2023-05-31 14:53:33 +05:30 committed by GitHub
parent 8e723df3fb
commit b4c0e29c04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,3 @@
import { useNotificationConsole } from "hooks/useNotificationConsole";
import React, { FunctionComponent, ReactNode } from "react"; import React, { FunctionComponent, ReactNode } from "react";
import { PanelFooterComponent } from "../PanelFooterComponent"; import { PanelFooterComponent } from "../PanelFooterComponent";
import { PanelInfoErrorComponent } from "../PanelInfoErrorComponent"; import { PanelInfoErrorComponent } from "../PanelInfoErrorComponent";
@ -23,12 +22,9 @@ export const RightPaneForm: FunctionComponent<RightPaneFormProps> = ({
isSubmitButtonDisabled = false, isSubmitButtonDisabled = false,
children, children,
}: RightPaneFormProps) => { }: RightPaneFormProps) => {
const expandConsole = useNotificationConsole((state) => state.expandConsole);
const handleOnSubmit = (event: React.FormEvent<HTMLFormElement>) => { const handleOnSubmit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault(); event.preventDefault();
console.log("right pane form clicked");
onSubmit(); onSubmit();
expandConsole();
}; };
return ( return (