mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-22 04:06:21 +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 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 (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user