diff --git a/packages/desktop-client/src/components/modals/EditRule.jsx b/packages/desktop-client/src/components/modals/EditRule.jsx index 4d42814e53d..e7ebb209470 100644 --- a/packages/desktop-client/src/components/modals/EditRule.jsx +++ b/packages/desktop-client/src/components/modals/EditRule.jsx @@ -1,6 +1,8 @@ import React, { useState, useEffect, useRef, useCallback } from 'react'; import { useDispatch, useSelector } from 'react-redux'; +import { v4 as uuid } from 'uuid'; + import { initiallyLoadPayees, setUndoEnabled, @@ -26,10 +28,11 @@ import { amountToInteger, } from 'loot-core/src/shared/util'; +import { useFeatureFlag } from '../../hooks/useFeatureFlag'; import { useSelected, SelectedProvider } from '../../hooks/useSelected'; -import { SvgAdd, SvgSubtract } from '../../icons/v0'; +import { SvgDelete, SvgAdd, SvgSubtract } from '../../icons/v0'; import { SvgInformationOutline } from '../../icons/v1'; -import { theme } from '../../style'; +import { styles, theme } from '../../style'; import { Button } from '../common/Button'; import { Modal } from '../common/Modal'; import { Select } from '../common/Select'; @@ -122,6 +125,19 @@ export function OpSelect({ ); } +function SplitAmountMethodSelect({ options, style, value, onChange }) { + return ( + +