Skip to content

Commit

Permalink
Bump libs
Browse files Browse the repository at this point in the history
  • Loading branch information
boo-0x committed Mar 29, 2024
1 parent fdccb0f commit 673af5a
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 171 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"@polkadot/extension-dapp": "^0.46.7",
"@popperjs/core": "^2.11.5",
"@reef-chain/evm-provider": "^2.0.3",
"@reef-chain/react-lib": "^2.6.0",
"@reef-chain/react-lib": "^2.6.2",
"@reef-chain/ui-kit": "^2.0.4",
"@reef-chain/util-lib": "^2.4.8",
"@reef-chain/util-lib": "^2.4.14",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
Expand Down
7 changes: 4 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Bind from './common/Bind/Bind';
import NetworkSwitching from './common/NetworkSwitching';
import { getIpfsGatewayUrl } from './environment';
import { MetaMaskProvider } from './context/MetamaskContext';
import { SNAP_URL } from './urls';

const App = (): JSX.Element => {
const {
Expand Down Expand Up @@ -72,7 +73,7 @@ const App = (): JSX.Element => {
<MetaMaskProvider>
<div className="App d-flex w-100 h-100">
<div className="w-100 main-content">
{(!error || (error.code === 2 && isSnap)) && (
{(!error || (error.code === 2 && isSnap) || history.location.pathname === SNAP_URL) && (
<>
<Nav display={true} />
<ContentRouter />
Expand All @@ -81,8 +82,8 @@ const App = (): JSX.Element => {

<NetworkSwitching isOpen={isNetworkSwitching} />

{error?.code === 1 && <NoExtension />}
{error?.code === 2 && !isSnap && <NoAccount />}
{error?.code === 1 && history.location.pathname !== SNAP_URL && <NoExtension />}
{error?.code === 2 && !isSnap && history.location.pathname !== SNAP_URL && <NoAccount />}
<ToastContainer
draggable
newestOnTop
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/Activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const parseTokenTransfers = async(transfers:tokenUtil.TokenTransfer[],nwContext:

export const Activity = (): JSX.Element => {
const [unparsedTransfers, loading] :[tokenUtil.TokenTransfer[], boolean] = hooks.useTxHistory();
const [transfers, setTransfers] = useStatee<CummulativeTransfers[]>([]);
const [transfers, setTransfers] = useState<CummulativeTransfers[]>([]);
const {network:nwContext} = useContext(ReefSigners);

useEffect(() => {
Expand Down
Loading

0 comments on commit 673af5a

Please sign in to comment.