Skip to content

Commit

Permalink
fix: remove account switcher and only show balance
Browse files Browse the repository at this point in the history
  • Loading branch information
farabi-deriv committed Feb 24, 2025
1 parent 213b9e2 commit f006c3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/BalanceDisplay/BalanceDisplay.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { useClientStore } from "@/stores/clientStore";
// import { useClientStore } from "@/stores/clientStore";

interface BalanceDisplayProps {
className?: string;
Expand All @@ -8,13 +8,14 @@ interface BalanceDisplayProps {
export const BalanceDisplay: React.FC<BalanceDisplayProps> = ({
className = "",
}) => {
const { balance, currency } = useClientStore();
// const { balance, currency } = useClientStore();

return (
<div className={`flex flex-col ${className}`}>
<span className="text-sm font-semibold text-color-solid-glacier-700">Real</span>
<span className="text-sm font-semibold">
{balance} {currency}
{/* {balance} {currency} */}
10,000 USD
</span>
</div>
);
Expand Down
6 changes: 4 additions & 2 deletions src/layouts/MainLayout/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from "react";
import { useOrientationStore } from "@/stores/orientationStore";
import { useClientStore } from "@/stores/clientStore";
import { AccountSwitcher } from "@/components/AccountSwitcher";
// import { AccountSwitcher } from "@/components/AccountSwitcher";
import { BalanceDisplay } from "@/components/BalanceDisplay";

interface HeaderProps {
className?: string;
Expand Down Expand Up @@ -42,7 +43,8 @@ export const Header: React.FC<HeaderProps> = ({
<div className={isLandscape ? "flex items-center gap-4" : "flex-1"}>
{isLoggedIn && (
<div className={isLandscape ? "px-4" : ""}>
<AccountSwitcher />
{/* <AccountSwitcher /> */}
<BalanceDisplay />
</div>
)}
</div>
Expand Down

0 comments on commit f006c3c

Please sign in to comment.