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

Product Form Information Component #5

Open
bentran1vn opened this issue Apr 3, 2024 · 0 comments
Open

Product Form Information Component #5

bentran1vn opened this issue Apr 3, 2024 · 0 comments
Assignees

Comments

@bentran1vn
Copy link
Collaborator

bentran1vn commented Apr 3, 2024

Create a Product Form Information Component that can be reused in Add and Update Product !

  • Component include name, type, materials, quantities, release day, action props

  • Type of props
    -- name: string
    -- type: string
    -- materials: string
    -- quantities: { size: string, color: string, quantity: number } [ ]
    -- release day: date
    -- action: 'Edit' | 'Submit'

  • Validation:
    -- name: Not Empty
    -- material: Not Empty
    -- quantities : Number, Not Empty, Bigger than zero
    -- release day: Not Empty, Not in the past

Here is UI of Form:
Image

@bentran1vn bentran1vn self-assigned this Apr 3, 2024
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

No branches or pull requests

1 participant