Hello everyone! I decided to use Mantine components instead of Redwood form helper components in the SignupPage.tsx file and I get a 400 bad request error when I submit the form.
<Form onSubmit={submitData}>
<TextInput
name="username"
label="Username"
placeholder="you@mantine.dev"
ref={usernameRef}
required
/>
<PasswordInput
name="password"
label="Password"
placeholder="Your password"
required
mt="md"
autoComplete="current-password"
/>
<Select
name="roles"
label="Role"
placeholder="Pick one"
data={[
{ value: 'technician', label: 'Technician' },
{ value: 'customer', label: 'Customer' },
]}
required
/>
<Button fullWidth mt="xl" type="submit">
Sign up
</Button>
</Form>
When working with forms in RedwoodJS? do I always have to use the helper components like <TextField/>,<PasswordField/> and <SelectField/>
?
Here is the link to the GitHub repo: My repo