You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Jakob, I am watching tutorial from Ania Kubow. I have problem with swiping on my app, i asked ChatGPT,and it cannot solve my problem. Version that I have is "react-tinder-card": "^1.6.4". I can move my card a little bit, but she didn't swipe or go to their direction. I will put my dashboard code and my css code. If you can see any problem I will be thankful for helping me.
import TinderCard from 'react-tinder-card'
import { useEffect,useState } from 'react'
import {useCookies} from 'react-cookie'
import ChatContainer from '../components/ChatContainer'
import axios from 'axios'
Hi Jakob, I am watching tutorial from Ania Kubow. I have problem with swiping on my app, i asked ChatGPT,and it cannot solve my problem. Version that I have is "react-tinder-card": "^1.6.4". I can move my card a little bit, but she didn't swipe or go to their direction. I will put my dashboard code and my css code. If you can see any problem I will be thankful for helping me.
import TinderCard from 'react-tinder-card'
import { useEffect,useState } from 'react'
import {useCookies} from 'react-cookie'
import ChatContainer from '../components/ChatContainer'
import axios from 'axios'
}
export default Dashboard,
and my css code for dashboard
.dashboard {
display: flex;
justify-content: space-between;
}
.dashboard .swipe-container {
width: 70%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
.swipe {
position: absolute;
}
.dashboard .card-container {
width: 400px;
height: 650px;
position: relative;
}
.card {
width: 400px;
height: 650px;
border-radius: 30px;
background-size: cover;
background-position: center;
}
.card h3 {
margin-top: 0;
}
.dashboard .swipe-info {
position: absolute;
bottom: 0;
padding: 10px;
}
The text was updated successfully, but these errors were encountered: