system-react module entrypoint, reaction loading memos

This commit is contained in:
Martti Malmi
2024-01-09 12:07:08 +02:00
parent bbdfb43834
commit 7a409c1455
6 changed files with 21 additions and 16 deletions

View File

@ -10,12 +10,12 @@ import Avatar from "@/Components/User/Avatar";
import { ProfileLink } from "@/Components/User/ProfileLink";
import useEventPublisher from "@/Hooks/useEventPublisher";
import { HasNotificationsMarker } from "@/Pages/Layout/HasNotificationsMarker";
import { WalletBalance } from "@/Pages/Layout/WalletBalance";
import { subscribeToNotifications } from "@/Utils/Notifications";
import { getCurrentSubscription } from "@/Utils/Subscription";
import useLogin from "../../Hooks/useLogin";
import { LogoHeader } from "./LogoHeader";
import { WalletBalance } from "@/Pages/Layout/WalletBalance";
const MENU_ITEMS = [
{

View File

@ -1,10 +1,11 @@
import { useEffect, useMemo, useState } from "react";
import { Sats, useWallet } from "@/Wallet";
import { useRates } from "@/Hooks/useRates";
import { FormattedMessage, FormattedNumber } from "react-intl";
import Icon from "@/Components/Icons/Icon";
import { useNavigate } from "react-router-dom";
import Icon from "@/Components/Icons/Icon";
import { useRates } from "@/Hooks/useRates";
import { Sats, useWallet } from "@/Wallet";
export const WalletBalance = () => {
const [balance, setBalance] = useState<Sats | null>(null);
const wallet = useWallet();