-
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): Accessing the Connect Wallet Feature from the Menu Bar (#450)
* feat(ui): update connect wallet button for menu tab * feat(ui): update style for connect wallet screen * feat(ui): remove const file --------- Co-authored-by: Vu Van Duc <vuvanduc@Vus-MacBook-Pro.local>
- Loading branch information
1 parent
8fe19e7
commit 5659639
Showing
12 changed files
with
228 additions
and
51 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
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 { | ||
height: calc(100vh - 8rem); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
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,28 @@ | ||
import { useState } from "react"; | ||
import { i18n } from "../../../../../i18n"; | ||
import { CardsPlaceholder } from "../../../../components/CardsPlaceholder"; | ||
import "./ConnectWallet.scss"; | ||
|
||
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> | ||
</> | ||
); | ||
}; | ||
|
||
export { ConnectWallet }; |
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.