Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: code revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuran-deriv committed Jan 16, 2024
1 parent a69cf93 commit 02613f1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3139,6 +3139,7 @@
"-1120049888": "Leading company stocks and top global indices.",
"-1960027144": "Diverse exchange-traded funds for broad market exposure.",
"-1939560439": "Traders' tools",
"-1124845179": "Open demo account",
"-1154249172": "Deriv API",
"-373212993": "Deriv website",
"-1151648694": "Google account sign in page",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,27 @@ export const MainNavigationButtons = () => {

return (
<div className="flex items-center gap-gap-md">
<Button
variant="secondary"
colorStyle="black"
size="lg"
onClick={handleRedirectToTradersHub}
icon={LabelPairedGridLgBoldIcon}
iconPosition="start"
>{`Trader's Hub`}</Button>
{is_logged_in ? (
<Button
variant="secondary"
colorStyle="black"
size="lg"
onClick={handleRedirectToTradersHub}
icon={LabelPairedGridLgBoldIcon}
iconPosition="start"
>
{`Trader's Hub`}
</Button>
) : (
<>
<Button variant="secondary" colorStyle="black" size="lg" onClick={handleLogin}>
<Localize translate_text="_t_Log in_t_" />
</Button>
<Button size="lg" className="hidden lg:block" onClick={handleSignup}>
<Localize translate_text="_t_Open demo account_t_" />
</Button>
</>
)}

<MobileNavToggle data-cy="hamburger-menu" />
</div>
Expand Down

0 comments on commit 02613f1

Please sign in to comment.