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
> Closes#236#121
------------------
### Initialize Redux support to store state
### Show values in USD in Ledger Live dApp
------------------
### _What was done:_
- Added packages: `react-redux, ver. ^9.1.0` | `@reduxjs/toolkit", ver:
^2.2.0`
- Disabled `eslint` no-param-reassign rule for slice files. `Redux
Toolkit` uses `Immer` under the hood to write simpler immutable update
logic using "mutating" syntax.
- Updated `asyncWrapper` to `logPromiseFailure` method to catch
promises.
- Added `useCurrencyConversion` hook to calculate values from BTC to
USD. It should be updated to handle other currencies if appears in the
redux store.
- Added `useFetchBTCPriceUSD` hook to get bitcoin price from `Coingecko
API`.
- `redux dev tools `are enabled for all environments, excluding `PROD`
env.
------------------
### _Preview:_
<img width="459" alt="Screenshot 2024-03-01 at 18 24 52"
src="https://github.com/thesis/acre/assets/28560653/3715268c-4b82-4c56-88de-a8cf2a9c4ee2">
Some of the values should be displayed in both BTC and USD.
Depends on: #236
Tasks
The text was updated successfully, but these errors were encountered: