omnisci3nce / cobalt

share videos
2 stars 0 forks source link

Configure Preferences card should have a Save button that can submit the form #8

Open omnisci3nce opened 1 year ago

omnisci3nce commented 1 year ago

UI

image

Form

Follow the patterns in components/LoginForm

omnisci3nce commented 1 year ago

Update from Discord:

ok I worked on the Preferences card a bit. I've figured out how to combine React Query with the useForm from mantine just for that specific form it's a little overkill otherwise I think but in this case after you click "Save" we want to refetch the data and then always have the form open instead of how you'd traditionally submit the form then close the form or modal, or navigate away which we can do with the invalidate of React Query So, that's nice. Took a while but we got there