added logs

changed gif
This commit is contained in:
Oleg Yakovenko 2024-07-14 20:57:29 +03:00
parent 72ad5b3a21
commit b4ceaa387a
2 changed files with 7 additions and 1 deletions

View File

@ -12,8 +12,12 @@ export const WelcomeStep = ({ nextStep }: WelcomeStepProps) => {
const [tonConnectUI] = useTonConnectUI(); const [tonConnectUI] = useTonConnectUI();
const [isLoaded, setLoaded] = useState(false); const [isLoaded, setLoaded] = useState(false);
console.log('💩💩💩 enter WelcomeStep');
const auth = useAuth(); const auth = useAuth();
console.log('💩💩💩 after useAuth');
const handleNextClick = async () => { const handleNextClick = async () => {
if (tonConnectUI.connected) { if (tonConnectUI.connected) {
nextStep(); nextStep();
@ -42,7 +46,7 @@ export const WelcomeStep = ({ nextStep }: WelcomeStepProps) => {
<section <section
className={"relative flex h-[100vh] items-center justify-center"} className={"relative flex h-[100vh] items-center justify-center"}
> >
<img alt={"splash"} className={"mb-20 h-[300px]"} src={"/splash.gif"} /> <img alt={"splash"} className={"mb-20 h-[100px]"} src={"/splash.gif"} />
</section> </section>
); );
} }

View File

@ -7,6 +7,8 @@ export const useAuth = () => {
const WebApp = useWebApp(); const WebApp = useWebApp();
return useMutation(["auth"], () => { return useMutation(["auth"], () => {
console.log("👀👀👀 in useMutation - auth");
return request.post<{ return request.post<{
connected_wallet: null | { connected_wallet: null | {
version: string; version: string;