mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-21 03:36:18 +00:00
Update RightPaneForm.tsx
This commit is contained in:
parent
8e723df3fb
commit
b4c0e29c04
@ -1,4 +1,3 @@
|
||||
import { useNotificationConsole } from "hooks/useNotificationConsole";
|
||||
import React, { FunctionComponent, ReactNode } from "react";
|
||||
import { PanelFooterComponent } from "../PanelFooterComponent";
|
||||
import { PanelInfoErrorComponent } from "../PanelInfoErrorComponent";
|
||||
@ -23,12 +22,9 @@ export const RightPaneForm: FunctionComponent<RightPaneFormProps> = ({
|
||||
isSubmitButtonDisabled = false,
|
||||
children,
|
||||
}: RightPaneFormProps) => {
|
||||
const expandConsole = useNotificationConsole((state) => state.expandConsole);
|
||||
const handleOnSubmit = (event: React.FormEvent<HTMLFormElement>) => {
|
||||
event.preventDefault();
|
||||
console.log("right pane form clicked");
|
||||
onSubmit();
|
||||
expandConsole();
|
||||
};
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user