-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: user reply design #46
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor the code
import { useState } from "react"; | ||
import { Button } from "@material-tailwind/react"; | ||
|
||
const camelize = (str) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put some comment to explain this
}; | ||
|
||
return ( | ||
<form onSubmit={submitForm} className="reply-block"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there will be a bounce of questions with reply so I mean, create state or store or something else to handle them :
{questionId: "uuid",
answer: ""}
<> | ||
{field.list.map((option) => ( | ||
<div key={option}> | ||
<input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use material tailwind CheckBox
<> | ||
{field.list.map((option) => ( | ||
<div key={option}> | ||
<input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if exist, use Radio from material tailwind
No description provided.