diff --git a/frontend/src/pages/CreateGirl.jsx b/frontend/src/pages/CreateGirl.jsx index 56aab7f..b1f5faa 100644 --- a/frontend/src/pages/CreateGirl.jsx +++ b/frontend/src/pages/CreateGirl.jsx @@ -1,4 +1,4 @@ -import { useNavigate } from 'react-router-dom'; +import { Link, useNavigate } from 'react-router-dom'; import api from '../api'; import { useState } from 'react'; import { validate, changeInput } from '../helpers'; @@ -25,10 +25,8 @@ export default function CreateGirl() { } else { console.log("Girl was not added!"); } - }) .catch((error) => console.error(`Error: ${error}`)); - } return ( @@ -83,7 +81,6 @@ export default function CreateGirl() { min="18" max="70" /> - {(age) ? null : This field is required} White - {(hairColor) ? null : This field is required} - setEyeColor(e.target.value)} value={eyeColor} - /> + > + + + + + + + {(eyeColor) ? null : This field is required} + Back ) diff --git a/frontend/src/pages/EditGirl.jsx b/frontend/src/pages/EditGirl.jsx index 7564fc2..8209871 100644 --- a/frontend/src/pages/EditGirl.jsx +++ b/frontend/src/pages/EditGirl.jsx @@ -1,4 +1,4 @@ -import { useParams, useNavigate } from 'react-router-dom'; +import { Link, useParams, useNavigate } from 'react-router-dom'; import api from '../api'; import { useState, useEffect } from 'react'; import { validate, changeInput } from '../helpers'; @@ -7,7 +7,6 @@ import { validate, changeInput } from '../helpers'; export default function EditEscapeRoom() { const { girlId } = useParams(); const [girls, setGirls] = useState([]); - const [image, setImage] = useState(""); const [name, setName] = useState(""); const [bio, setBio] = useState(""); @@ -59,7 +58,6 @@ export default function EditEscapeRoom() { }) .catch((error) => console.error(`Error: ${error}`)); } - return (