mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Complete category settings
This commit is contained in:
@@ -174,7 +174,7 @@ const CategorySettings = () => {
|
||||
</Text>
|
||||
{error && <Alert color='error' text={error} />}
|
||||
{success && (
|
||||
<Alert color='success' text='Account updated successfully' />
|
||||
<Alert color='success' text='Category updated successfully' />
|
||||
)}
|
||||
</Box>
|
||||
{!categoryLoading ? (
|
||||
@@ -225,7 +225,10 @@ const CategorySettings = () => {
|
||||
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}
|
||||
/>
|
||||
<TextArea
|
||||
|
||||
Reference in New Issue
Block a user