dialog API review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ import { createApiRef } from '@backstage/core-plugin-api';
|
||||
*/
|
||||
export interface DialogApiDialog<TResult = unknown> {
|
||||
/**
|
||||
* Closes the dialog with thet provided result.
|
||||
* Closes the dialog with that provided result.
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
|
||||
@@ -51,7 +51,7 @@ function DialogDisplay({
|
||||
const [dialogs, setDialogs] = useState<
|
||||
{ dialog: DialogState; element: React.JSX.Element }[]
|
||||
>([]);
|
||||
// const [state, dispatch] = React.useReducer(dialogReducer)
|
||||
|
||||
useEffect(() => {
|
||||
dialogApi.connect(options => {
|
||||
const id = getDialogId();
|
||||
|
||||
Reference in New Issue
Block a user