parent
72ad5b3a21
commit
b4ceaa387a
|
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue