Skip to content

Commit

Permalink
fix(widget): send trade params to widget integrator (#4196)
Browse files Browse the repository at this point in the history
* fix(widget): send trade params to widget integrator

* chore: fix code style

* refactor: remove dead updater (#4198)
  • Loading branch information
shoom3301 authored Apr 10, 2024
1 parent 3ab6cb9 commit 0036a6b
Show file tree
Hide file tree
Showing 13 changed files with 96 additions and 313 deletions.
78 changes: 0 additions & 78 deletions apps/cowswap-frontend/src/common/updaters/LogsUpdater.ts

This file was deleted.

2 changes: 0 additions & 2 deletions apps/cowswap-frontend/src/legacy/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import cowToken from './cowToken/reducer'
import enhancedTransactions from './enhancedTransactions/reducer'
import gas from './gas/reducer'
import { updateVersion } from './global/actions'
import logs from './logs/slice'
import { appziMiddleware, soundMiddleware } from './orders/middleware'
import orders from './orders/reducer'
import { priceMiddleware } from './price/middleware'
Expand All @@ -25,7 +24,6 @@ const reducers = {
user,
connection,
swap,
logs,
transactions: enhancedTransactions, // replace transactions state by "enhancedTransactions"
orders,
price,
Expand Down
85 changes: 0 additions & 85 deletions apps/cowswap-frontend/src/legacy/state/logs/hooks.ts

This file was deleted.

90 changes: 0 additions & 90 deletions apps/cowswap-frontend/src/legacy/state/logs/slice.ts

This file was deleted.

56 changes: 0 additions & 56 deletions apps/cowswap-frontend/src/legacy/state/logs/utils.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { CancelReplaceTxUpdater } from 'common/updaters/CancelReplaceTxUpdater'
import { FeesUpdater } from 'common/updaters/FeesUpdater'
import { GasUpdater } from 'common/updaters/GasUpdater'
import { HwAccountIndexUpdater } from 'common/updaters/HwAccountIndexUpdater'
import { LogsUpdater } from 'common/updaters/LogsUpdater'
import {
CancelledOrdersUpdater,
ExpiredOrdersUpdater,
Expand Down Expand Up @@ -53,7 +52,6 @@ export function Updaters() {
<GpOrdersUpdater />
<GasUpdater />
<GasPriceStrategyUpdater />
<LogsUpdater />
<SentryUpdater />
<UploadToIpfsUpdater />
<EthFlowSlippageUpdater />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,8 @@ export const ORDERS_NOTIFICATION_HANDLERS: Record<CowEvents, OrdersNotifications
return null
},
},
[CowEvents.ON_CHANGE_TRADE_PARAMS]: {
icon: 'success',
handler: () => null,
},
}
Loading

0 comments on commit 0036a6b

Please sign in to comment.