Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly committed May 29, 2024
1 parent 2c6aa05 commit 6da5d05
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 37 deletions.
2 changes: 1 addition & 1 deletion front/src/components/main/TonWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const TonWallet = ({ nickname, message, type }) => {
>
<Button onClick={handleSwitchWalletFunction}>
{/* <TonConnectCenterBox> */}
{isPassportType ? "Passport" : "Text"} proof
{isPassportType ? "Add passport" : "Cyberlink"}
{/* </TonConnectCenterBox> */}
</Button>
<p
Expand Down
63 changes: 27 additions & 36 deletions front/src/pages/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,32 +83,6 @@ const Main = () => {
</Display> */}
<Header isOpen={false} text="CYBER-TON" backgroundType={false} />

<Display title={<DisplayTitle title="Message" />}>
<Input
placeholder="enter message..."
value={message}
onChange={(e) => {
if (connected) {
tonConnectUI.disconnect();
}

setMessage(e.target.value);
}}
/>
<TonWallet message={message} nickname={nickname} type="text" />

{textProof && (
<div
style={{
fontSize: 14,
}}
>
<br />
{JSON.stringify(textProof)}
</div>
)}
</Display>

<Display title={<DisplayTitle title="Passport" />}>
<Input
value={nickname}
Expand Down Expand Up @@ -149,18 +123,35 @@ const Main = () => {
{JSON.stringify(passportProof)}
</div>
)}
</Display>

{tonProof && (
<div
style={{
fontSize: 14,
{passportProof && (
<Display title={<DisplayTitle title="Message" />}>
<Input
placeholder="enter message..."
value={message}
onChange={(e) => {
if (connected) {
tonConnectUI.disconnect();
}

setMessage(e.target.value);
}}
>
<br />
{JSON.stringify(tonProof)}
</div>
)}
</Display>
/>
<TonWallet message={message} nickname={nickname} type="text" />

{textProof && (
<div
style={{
fontSize: 14,
}}
>
<br />
{JSON.stringify(textProof)}
</div>
)}
</Display>
)}
</MainContainer>
</>
);
Expand Down

0 comments on commit 6da5d05

Please sign in to comment.