fix
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 38s
Create and publish a Docker image / Deploy image (push) Has been skipped

This commit is contained in:
VITALY-VORON 2023-08-25 17:52:58 +03:00
parent 88067edac3
commit 3a008df66a
5 changed files with 22 additions and 4 deletions

4
package-lock.json generated
View File

@ -7,6 +7,7 @@
"": {
"name": "hackathonficha",
"version": "0.1.0",
"license": "ISC",
"dependencies": {
"@react-spring/web": "^9.5.5",
"@testing-library/jest-dom": "^5.17.0",
@ -31,7 +32,8 @@
"workbox-routing": "^6.6.0",
"workbox-strategies": "^6.6.0",
"workbox-streams": "^6.6.0"
}
},
"devDependencies": {}
},
"node_modules/@aashutoshrathi/word-wrap": {
"version": "1.2.6",

View File

@ -0,0 +1,10 @@
.App {
position: relative;
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
.App.hidden {
opacity: 0;
pointer-events: none;
}

View File

@ -3,13 +3,19 @@ import Start from './components/Start/Start';
import Second from './components/Second/Second';
import Tinder from './components/Tinder/Tinder';
import Map from './components/Map/Map';
import './App.css'
function App() {
const [buttonValue, setButtonValue] = useState("");
const [isHidden, setIsHidden] = useState(false);
const handleButtonValue = (value) => {
setIsHidden(true);
setTimeout(() => {
setIsHidden(false);
setButtonValue(value);
}, 300);
};
let content = null;
@ -27,7 +33,7 @@ function App() {
}
return (
<div className="App">
<div className={`App ${isHidden ? 'hidden' : ''}`}>
{content}
</div>
);

View File

@ -12,6 +12,7 @@ const Start = (props) => {
flexWrap: 'wrap',
justifyContent: 'space-evenly',
height: '95vh',
overflow: 'hidden',
}}>
<span style={{
display: 'flex',

View File

@ -17,7 +17,6 @@ const Tinder = (props) => {
axios.get('https://easytravel.zetcraft.ru/v1/GetAllCards')
.then(response => {
setCardInfo(response.data);
console.log(cardInfo.length);
})
.catch(error => {