Skip to content

Commit

Permalink
fix: Wallet Connect Button
Browse files Browse the repository at this point in the history
  • Loading branch information
Javid Momeni committed Jun 30, 2024
1 parent da4ada3 commit a96581f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion src/components/HeaderMenu/HeaderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function HeaderMenu({ username, photoUrl }: { username: string; photoUrl: string
ml={'xs'}
style={{ textAlign: 'center', color: 'white' }}
>
<IconWallet style={{ width: rem(24), height: rem(24) }} />
{/* <IconWallet style={{ width: rem(24), height: rem(24) }} /> */}
<TonConnectButton />
</UnstyledButton>
</Flex>
Expand Down
26 changes: 0 additions & 26 deletions src/pages/Boosts.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,6 @@ export function BoostsPage() {

useEffect(() => {
if (userFriendlyAddress) {


// fetch('https://kharcoin.com/api/savewallet', {
// method: 'POST',
// headers: {
// 'Content-Type': 'application/json',
// },
// body: JSON.stringify({
// id : usertgid,
// wallet : userFriendlyAddress,
// }),
// })
// .then(response => response.json())
// .then(data => {
// console.log('Success:', data);
// // Handle success, e.g., show a message to the user
// })
// .catch((error) => {
// console.error('Error:', error);
// // Handle errors, e.g., show an error message to the user
// });

const formdata = new FormData();
console.log(String(usertgid));
formdata.append("wallet", userFriendlyAddress);
Expand All @@ -44,7 +22,6 @@ export function BoostsPage() {
method: "POST",
body: formdata,
};

fetch("https://kharapi.rahomaskan.com/api/savewallet", requestOptions)
.then((response) => {
if (!response.ok) {
Expand All @@ -54,11 +31,8 @@ export function BoostsPage() {
})
.then((result) => console.log(result))
.catch((error) => console.error(error));


}
}, [userFriendlyAddress]);

return (
<Container size={'xs'}>
<AppShell
Expand Down

0 comments on commit a96581f

Please sign in to comment.