From a0fb4c8d8af6d2f08363209e9e3f65f1fb9973bc Mon Sep 17 00:00:00 2001 From: Jeff Cheema Date: Wed, 6 Dec 2023 17:40:57 -0800 Subject: [PATCH] fixed grid system --- src/pages/AddDog/AddDog.jsx | 4 +- src/pages/AddDog/AddDog.yup.jsx | 2 - src/pages/Dogs/AdoptionLogFacilityCards.jsx | 222 ++++++++++---------- src/pages/ViewDog/ViewDog.jsx | 2 +- 4 files changed, 115 insertions(+), 115 deletions(-) diff --git a/src/pages/AddDog/AddDog.jsx b/src/pages/AddDog/AddDog.jsx index d74459d..71d1e28 100644 --- a/src/pages/AddDog/AddDog.jsx +++ b/src/pages/AddDog/AddDog.jsx @@ -30,10 +30,10 @@ import AdopterAddressSchema from './Form/FormSchemas/AdopterAddressSchema'; import DogInfoSchema from './Form/FormSchemas/DogInfoSchema'; import NotesSchema from './Form/FormSchemas/NotesSchema'; import FacilityInfoSchema from './Form/FormSchemas/FacilityInfoSchema'; - import FinancialInfoSchema from './Form/FormSchemas/FinancialInfoSchema'; import ShowTags from './ShowTags'; import { useForm } from 'react-hook-form'; + const AddDog = () => { const { backend } = useBackend(); const Navigate = useNavigate(); @@ -128,7 +128,7 @@ const AddDog = () => { - + diff --git a/src/pages/AddDog/AddDog.yup.jsx b/src/pages/AddDog/AddDog.yup.jsx index 777ef98..3b6a330 100644 --- a/src/pages/AddDog/AddDog.yup.jsx +++ b/src/pages/AddDog/AddDog.yup.jsx @@ -1,8 +1,6 @@ import * as yup from 'yup'; export default yup.object().shape({ - // dogid - // Dog Info Section dogname: yup.string().required('Dog name is required'), age: yup.number().required('Age is required'), breed: yup.string().required('Breed is required'), diff --git a/src/pages/Dogs/AdoptionLogFacilityCards.jsx b/src/pages/Dogs/AdoptionLogFacilityCards.jsx index 798f17d..4262a99 100644 --- a/src/pages/Dogs/AdoptionLogFacilityCards.jsx +++ b/src/pages/Dogs/AdoptionLogFacilityCards.jsx @@ -29,121 +29,123 @@ const AdoptionLogFacilityCards = ({ // const { shelter } = info; return ( - - {dogs.map( - ({ - dogid, - dogname, - graddate, - age, - breed, - adoptername, - adoptemail, - adopterphone, - addrline, - adoptcity, - adoptstate, - zip, - image, - ...rest - }) => { - const tags = Object.keys(possibleDogTags).filter(tag => rest[tag]); - return ( - - - - - - Segun Adebayo - - - {dogname} - - - Grad Age: {calculateDogAgeAtGraduation(graddate, age)} - - - Breed: {breed} - + + + {dogs.map( + ({ + dogid, + dogname, + graddate, + age, + breed, + adoptername, + adoptemail, + adopterphone, + addrline, + adoptcity, + adoptstate, + zip, + image, + ...rest + }) => { + const tags = Object.keys(possibleDogTags).filter(tag => rest[tag]); + return ( + + + + + + Segun Adebayo + + + {dogname} + + + Grad Age: {calculateDogAgeAtGraduation(graddate, age)} + + + Breed: {breed} + + + { + e.stopPropagation(); + toggleCheck(dogid); + }} + /> - { - e.stopPropagation(); - toggleCheck(dogid); - }} - /> + + {tags.map(tag => ( + + {possibleDogTags[tag].display} + + ))} + - - {tags.map(tag => ( - - {possibleDogTags[tag].display} - - ))} - - - - - - - - Facility: + + + + + + Facility: + + + {facilityName} + + + + Adopter + + + Name: {adoptername} + + + Email: {adoptemail} + + + Phone: {adopterphone} - - {facilityName} + + Address: {addrline}, {adoptcity}, {adoptstate} {zip} - - - Adopter - - - Name: {adoptername} - - - Email: {adoptemail} - - - Phone: {adopterphone} - - - Address: {addrline}, {adoptcity}, {adoptstate} {zip} - - - - - - - - ); - }, - )} - + + + + + + + ); + }, + )} + + ); }; diff --git a/src/pages/ViewDog/ViewDog.jsx b/src/pages/ViewDog/ViewDog.jsx index 1e7aece..72ad65e 100644 --- a/src/pages/ViewDog/ViewDog.jsx +++ b/src/pages/ViewDog/ViewDog.jsx @@ -188,7 +188,7 @@ const AddDog = () => { - +