feat: Add Swap Settings #4293
Annotations
10 errors
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > renders with default props:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > applies custom className:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > uses provided defaultSlippage:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > allows input changes in Custom mode:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > disables input in Auto mode:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > switches between Auto and Custom modes:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > prevents invalid input:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > handles decimal input correctly:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > applies correct styles in Auto mode:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
src/swap/components/SwapSettingsSlippageInput.test.tsx > SwapSettingsSlippageInput > applies correct styles in Custom mode:
src/swap/components/SwapSettingsSlippageInput.tsx#L18
TypeError: Cannot read properties of undefined (reading 'statusData')
❯ getMaxSlippage src/swap/components/SwapSettingsSlippageInput.tsx:18:25
❯ SwapSettingsSlippageInput src/swap/components/SwapSettingsSlippageInput.tsx:27:44
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|