mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update category settings page
This commit is contained in:
@@ -62,6 +62,7 @@ const CategorySettings = () => {
|
|||||||
onCompleted({ updateCategory: data }) {
|
onCompleted({ updateCategory: data }) {
|
||||||
setCategory(data);
|
setCategory(data);
|
||||||
setSuccess(true);
|
setSuccess(true);
|
||||||
|
setTimeout(() => setSuccess(false), 3000);
|
||||||
},
|
},
|
||||||
onError({ graphQLErrors }) {
|
onError({ graphQLErrors }) {
|
||||||
setError(graphQLErrors[0]?.extensions?.info);
|
setError(graphQLErrors[0]?.extensions?.info);
|
||||||
@@ -234,6 +235,8 @@ const CategorySettings = () => {
|
|||||||
value={form.values.description}
|
value={form.values.description}
|
||||||
onChange={form.handleChange}
|
onChange={form.handleChange}
|
||||||
onBlur={form.handleBlur}
|
onBlur={form.handleBlur}
|
||||||
|
error={form.touched.description && !!form.errors.description}
|
||||||
|
errorMessage={form.errors.description}
|
||||||
/>
|
/>
|
||||||
<Box
|
<Box
|
||||||
marginTop='0.5rem'
|
marginTop='0.5rem'
|
||||||
|
|||||||
Reference in New Issue
Block a user