Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
Co-Authored-By: alfabetatester <[email protected]>
  • Loading branch information
TheDayG0ne and alfabetatester committed Nov 17, 2023
1 parent b7c9dde commit f2ecdbc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/views/admin/components/ProductForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,10 @@ const FormSchema = Yup.object().shape({
keywords: Yup.array()
.of(Yup.string())
.min(1, 'Необходимо указать как минимум 1 ключевое слово'),
sizes: Yup.array()
.of(Yup.string())
.min(1, 'Необходимо указать параметры товара'),
sizes: Yup.array(),
isFeatured: Yup.boolean(),
isRecommended: Yup.boolean(),
availableColors: Yup.array()
.of(Yup.string().required())
});

const ProductForm = ({ product, onSubmit, isLoading }) => {
Expand Down Expand Up @@ -174,7 +171,7 @@ const ProductForm = ({ product, onSubmit, isLoading }) => {
isMulti
disabled={isLoading}
placeholder="Добавить параметр..."
label="* Параметры (размер, модель)"
label="Параметры (размер, модель)"
/>
</div>
</div>
Expand Down

0 comments on commit f2ecdbc

Please sign in to comment.