generated from govinda777/twa-govinda-systems-ecomm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef88977
commit 30837af
Showing
5 changed files
with
50 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// src/components/TonTransferDashboard.tsx | ||
import React from 'react'; | ||
import { TonConnectButton } from "@tonconnect/ui-react"; | ||
import { Counter } from "./Counter"; | ||
import { Jetton } from "./Jetton"; | ||
import { TransferTon } from "./TransferTon"; | ||
import { Button, FlexBoxCol, FlexBoxRow } from "./styled/styled"; | ||
import { useTonConnect } from "../hooks/useTonConnect"; | ||
import { CHAIN } from "@tonconnect/protocol"; | ||
|
||
const TonTransferDashboard: React.FC = () => { | ||
const { network } = useTonConnect(); | ||
|
||
return ( | ||
<FlexBoxCol> | ||
<FlexBoxRow> | ||
<TonConnectButton /> | ||
<Button> | ||
{network | ||
? network === CHAIN.MAINNET | ||
? "mainnet" | ||
: "testnet" | ||
: "N/A"} | ||
</Button> | ||
</FlexBoxRow> | ||
<Counter /> | ||
<TransferTon /> | ||
<Jetton /> | ||
</FlexBoxCol> | ||
); | ||
}; | ||
|
||
export default TonTransferDashboard; |
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