нормальные роуты
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m16s
Create and publish a Docker image / Deploy image (push) Successful in 31s

This commit is contained in:
2023-09-05 20:46:24 +03:00
parent 30421a97da
commit c682e08cf3
12 changed files with 136 additions and 97 deletions

View File

@ -1,4 +1,5 @@
import React from "react"
import { useNavigate } from "react-router-dom";
import './style.css'
import Icon from './images/Vector.svg'
@ -6,7 +7,8 @@ import Icon from './images/Vector.svg'
const Second = (props) => {
const route = props.getValue;
const tinder = useNavigate();
const main = useNavigate();
return (
<div style={{
display: 'flex',
@ -41,8 +43,8 @@ const Second = (props) => {
gap:15,
alignItems:'center',
}}>
<button className="btn_first" onClick={() => route('/tinder')}>Давайте!</button>
<button className="btn_second" onClick={() => route('/main')}>Пропустить</button>
<button className="btn_first" onClick={() => tinder('/tinder')}>Давайте!</button>
<button className="btn_second" onClick={() => main('/main')}>Пропустить</button>
</div>
</div>
)