Remove useNavigate everywhere, and make request a query param. And convert dialog to Jotai

This commit is contained in:
Gregory Schier
2025-01-06 16:54:07 -08:00
parent 806a8eb801
commit bc50891edb
54 changed files with 592 additions and 545 deletions

View File

@@ -338,7 +338,7 @@ function PairEditorRow({
const handleFocus = useCallback(() => onFocus?.(pair), [onFocus, pair]);
const handleDelete = useCallback(() => onDelete?.(pair, false), [onDelete, pair]);
const getDeleteItems = useCallback(
const deleteItems = useMemo(
(): DropdownItem[] => [
{
key: 'delete',
@@ -525,7 +525,7 @@ function PairEditorRow({
onDelete={handleDelete}
/>
) : (
<Dropdown items={getDeleteItems}>
<Dropdown items={deleteItems}>
<IconButton
iconSize="sm"
size="xs"