mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Complete category settings
This commit is contained in:
@@ -174,7 +174,7 @@ const CategorySettings = () => {
|
|||||||
</Text>
|
</Text>
|
||||||
{error && <Alert color='error' text={error} />}
|
{error && <Alert color='error' text={error} />}
|
||||||
{success && (
|
{success && (
|
||||||
<Alert color='success' text='Account updated successfully' />
|
<Alert color='success' text='Category updated successfully' />
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
{!categoryLoading ? (
|
{!categoryLoading ? (
|
||||||
@@ -225,7 +225,10 @@ const CategorySettings = () => {
|
|||||||
form.setFieldValue('imageSource', filesource);
|
form.setFieldValue('imageSource', filesource);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
error={!!form.errors.imageName || !!form.errors.imageSource}
|
error={
|
||||||
|
form.touched.imageName &&
|
||||||
|
(!!form.errors.imageName || !!form.errors.imageSource)
|
||||||
|
}
|
||||||
errorMessage={form.errors.imageName}
|
errorMessage={form.errors.imageName}
|
||||||
/>
|
/>
|
||||||
<TextArea
|
<TextArea
|
||||||
|
|||||||
Reference in New Issue
Block a user