type 'FormPropsType'
Getting this error message when following the guide -
ERROR in src/App.tsx:81:17
TS2322: Type '{ initialValues: { email: string; password: string; }; }' is not assignable to type 'FormPropsType'.
Property 'onSubmit' is missing in type '{ initialValues: { email: string; password: string; }; }' but required in type '{ onSubmit: (values: any) => void; }'.
79 | },
80 | ]}
81 | formProps={{| ^^^^^^^^^ 82 | initialValues: { 83 | email: "info@refine.dev", 84 | password: "refine-supabase", How do I fix this? Thanks
9 Replies
Hey @icj_ 👋,
Can you share your app.tsx file?
Or you can check AuthPage doc
https://refine.dev/docs/api-reference/mantine/components/mantine-auth-page/#formprops
| refine
component from refine is a authentication page that can be used to login, register, forgot password and update password.
deep-jade•2y ago
file uploaded
Thank you. If you don't need formProps you can delete it
deep-jade•2y ago
Thank you! All new to web programming. That was part of the install when following the guide.
Can you share the guide?
deep-jade•2y ago
deep-jade•2y ago
I picked Mantine with example pages during install
oh, and supabase as the data provider
In the tutorial, the REST API data provider is selected by default. How did you choose Supabase?