Skip to content

Commit

Permalink
Feat: Price provider model (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuul-wq authored Sep 21, 2023
1 parent 3d067a3 commit 0b96f2e
Show file tree
Hide file tree
Showing 25 changed files with 996 additions and 81 deletions.
6 changes: 6 additions & 0 deletions src/renderer/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useEffect, useState } from 'react';
import { ErrorBoundary } from 'react-error-boundary';
import { useNavigate, useRoutes } from 'react-router-dom';
import { useUnit } from 'effector-react';

import { FallbackScreen } from '@renderer/components/common';
import { useAccount } from '@renderer/entities/account';
import { priceProviderModel, currencyModel } from '@renderer/entities/price';
import {
ConfirmDialogProvider,
I18Provider,
Expand All @@ -22,6 +24,10 @@ const App = () => {
const appRoutes = useRoutes(routesConfig);
const { getAccounts } = useAccount();

const [assetsPrices, activeCurrency] = useUnit([priceProviderModel.$assetsPrices, currencyModel.$activeCurrency]);
console.log('🔴 assetsPrices === > ', assetsPrices);
console.log('🔴 currency === > ', activeCurrency);

const [showSplashScreen, setShowSplashScreen] = useState(true);
const [isAccountsLoading, setIsAccountsLoading] = useState(true);

Expand Down
Loading

0 comments on commit 0b96f2e

Please sign in to comment.