-
-
Notifications
You must be signed in to change notification settings - Fork 684
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: enable project creation through new form #6961
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
type FormProps = { | ||
projectId: string; | ||
projectName: string; | ||
projectDesc: string; | ||
projectStickiness?: string; | ||
featureLimit?: string; | ||
featureCount?: number; | ||
projectMode?: string; | ||
setProjectStickiness?: React.Dispatch<React.SetStateAction<string>>; | ||
setProjectId: React.Dispatch<React.SetStateAction<string>>; | ||
setProjectName: React.Dispatch<React.SetStateAction<string>>; | ||
setProjectDesc: React.Dispatch<React.SetStateAction<string>>; | ||
setFeatureLimit?: React.Dispatch<React.SetStateAction<string>>; | ||
setProjectMode?: React.Dispatch<React.SetStateAction<ProjectMode>>; | ||
handleSubmit: (e: any) => void; | ||
errors: { [key: string]: string }; | ||
mode: 'Create' | 'Edit'; | ||
clearErrors: () => void; | ||
validateProjectId: () => void; | ||
}; |
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.
These are all the props from the old form. I've put them here as a template. We'll use the ones we need and remove the ones we don't as we go.
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.
Just shove in all the props that we send to the existing form for now, so that we have all the stuff we need.
We're not building this now after all
Because their styles don't get propagated to the top-level component, but instead to the wrapped input.
This PR allows very simple project creation. You can add a name and description. The ID is generated for you at the moment (we'll fix this later). Nothing else works, but the project is created successfully.