Skip to content

Commit

Permalink
add .
Browse files Browse the repository at this point in the history
  • Loading branch information
caesear committed Jul 23, 2024
1 parent 5b24153 commit edb465b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 1,157 deletions.
1,132 changes: 0 additions & 1,132 deletions dist/assets/index-BLzngC6o.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/index-C4Mi2psQ.css

This file was deleted.

Binary file removed dist/icon.png
Binary file not shown.
14 changes: 0 additions & 14 deletions dist/index.html

This file was deleted.

5 changes: 0 additions & 5 deletions dist/tonconnect-manifest.json

This file was deleted.

9 changes: 4 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import initDataUnsafe from "@twa-dev/sdk";
import WebApp from "@twa-dev/sdk";
import "./App.css";
import { TonConnectButton } from "@tonconnect/ui-react";
import { useTonConnect } from "./hooks/useTonConnect";
//import { useTonConnect } from "./hooks/useTonConnect";
import { useEffect, useState } from "react";

function App() {
const { connected } = useTonConnect();
//const { connected } = useTonConnect();
const [isMiniApp, setIsMiniApp] = useState(false);
const [loginData, setLoginData] = useState(null);
//const [loginData, setLoginData] = useState(null);

useEffect(() => {
//console.log("WebApp:", WebApp);
if (WebApp.initData) {
setIsMiniApp(true);
const initData = WebApp.initData;
//const initData = WebApp.initData;
const initDataParsed = WebApp.initDataUnsafe;

if (initDataParsed && initDataParsed.user?.username) {
Expand Down

0 comments on commit edb465b

Please sign in to comment.