-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): update connect wallet button for menu tab
- Loading branch information
Vu Van Duc
authored and
Vu Van Duc
committed
May 3, 2024
1 parent
8fe19e7
commit 8f16651
Showing
13 changed files
with
228 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const emptySubMenu = { | ||
Component: () => <></>, | ||
title: "", | ||
additionalButtons: <></>, | ||
pageId: "empty", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/ui/pages/Menu/components/ConnectWallet/ConnectWallet.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.connect-wallet-container { | ||
.placeholder-container { | ||
margin-top: 30%; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/ui/pages/Menu/components/ConnectWallet/ConnectWallet.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { useState } from "react"; | ||
import { i18n } from "../../../../../i18n"; | ||
import { CardsPlaceholder } from "../../../../components/CardsPlaceholder"; | ||
import "./ConnectWallet.scss"; | ||
|
||
export const ConnectWallet = () => { | ||
const pageId = "connect-wallet-placeholder"; | ||
const [openConnectWallet, setOpenConnectWallet] = useState(false); | ||
const handleAddConnect = () => { | ||
setOpenConnectWallet(true); | ||
}; | ||
|
||
return ( | ||
<> | ||
<div className="connect-wallet-container"> | ||
<div className="placeholder-container"> | ||
<CardsPlaceholder | ||
buttonLabel={i18n.t("connectwallet.sections.connectbtn")} | ||
buttonAction={handleAddConnect} | ||
testId={pageId} | ||
/> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./ConnectWallet"; |
File renamed without changes.
Oops, something went wrong.