You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small refactoring mainly focused on reducing duplicities:
The files useCoinmarketBuyDetail.ts, useCoinmarketSellDetail.ts and useCoinmarketExchangeDetail.ts - merged into one file useCoinmarketDetail.ts and moved to the /coinmarket folder.
Created useCoinmarketWatchTrade.ts in the /coinmarket folder with the useCoinmarketWatchTrade hook which is integrates three very similar functions - useWatchBuyTrade, useWatchSellTrade and useWatchExchangeTrade.
Created watchTrade function in invityAPI.ts, combining watchBuyTrade, watchSellTrade and watchExchangeTrade functions.
Used types from the newly created file coinmarketDetail.ts in the /types folder (a focus on merging types to one place).
Generally, using folders to separate Coinmarket from other features.
Spend and Savings are not included and are not going to be further supported.
The text was updated successfully, but these errors were encountered:
Description
A small refactoring mainly focused on reducing duplicities:
useCoinmarketWatchTrade
hook which is integrates three very similar functions -useWatchBuyTrade
,useWatchSellTrade
anduseWatchExchangeTrade
.watchTrade
function ininvityAPI.ts
, combiningwatchBuyTrade
,watchSellTrade
andwatchExchangeTrade
functions.The text was updated successfully, but these errors were encountered: