Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CRU Functionality #15

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

yuriyivanenko
Copy link

@yuriyivanenko yuriyivanenko commented Jun 12, 2024

Users are able to add hogs, filter and sort. Users are also able to hide, but not delete, hogs.

Screenshot 2024-06-13 at 9 09 43 AM

@yuriyivanenko yuriyivanenko marked this pull request as ready for review June 13, 2024 12:32
Comment on lines +5 to +20
const [formData, setFormData] = useState({
name: '',
specialty: '',
greased: false,
weight: '',
medal: 'none',
image: ''
})

const handleChange = (e) => {
const { name, value, type, checked } = e.target
setFormData({
...formData,
[name]: type === 'checkbox' ? checked : value
})
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants