Fix find/replace CM styling

This commit is contained in:
Gregory Schier
2024-02-26 17:07:09 -08:00
parent 59d532ed4d
commit 1efd0852ef
7 changed files with 50 additions and 32 deletions

View File

@@ -1,5 +1,4 @@
import React, { createContext, useContext, useMemo, useState } from 'react';
import { useHotKey } from '../hooks/useHotKey';
import { trackEvent } from '../lib/analytics';
import type { DialogProps } from './core/Dialog';
import { Dialog } from './core/Dialog';
@@ -60,7 +59,6 @@ export const DialogProvider = ({ children }: { children: React.ReactNode }) => {
function DialogInstance({ id, render, ...props }: DialogEntry) {
const { actions } = useContext(DialogContext);
const children = render({ hide: () => actions.hide(id) });
useHotKey('popup.close', () => actions.hide(id));
return (
<Dialog open onClose={() => actions.hide(id)} {...props}>
{children}