Explorar o código

+validate doesnt work in build

ilya_shyian %!s(int64=2) %!d(string=hai) anos
pai
achega
f1293e250c

+ 3 - 3
build/asset-manifest.json

@@ -1,7 +1,7 @@
 {
   "files": {
     "main.css": "/static/css/main.928beea0.css",
-    "main.js": "/static/js/main.d715ba92.js",
+    "main.js": "/static/js/main.4c6956e2.js",
     "static/js/787.884e199e.chunk.js": "/static/js/787.884e199e.chunk.js",
     "static/media/main-page-image.png": "/static/media/main-page-image.bc655052ce386c031a15.png",
     "static/media/default-avatar-image.png": "/static/media/default-avatar-image.fb653606e5a348e7bc76.png",
@@ -9,11 +9,11 @@
     "static/media/shopping-logo.svg": "/static/media/shopping-logo.423022a24e67b6b6140c294be23af1b0.svg",
     "index.html": "/index.html",
     "main.928beea0.css.map": "/static/css/main.928beea0.css.map",
-    "main.d715ba92.js.map": "/static/js/main.d715ba92.js.map",
+    "main.4c6956e2.js.map": "/static/js/main.4c6956e2.js.map",
     "787.884e199e.chunk.js.map": "/static/js/787.884e199e.chunk.js.map"
   },
   "entrypoints": [
     "static/css/main.928beea0.css",
-    "static/js/main.d715ba92.js"
+    "static/js/main.4c6956e2.js"
   ]
 }

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
build/index.html


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3 - 3
build/static/js/main.d715ba92.js


build/static/js/main.d715ba92.js.LICENSE.txt → build/static/js/main.4c6956e2.js.LICENSE.txt


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
build/static/js/main.d715ba92.js.map


+ 1 - 6
src/components/DashboardPage/ProfileForm/index.js

@@ -193,12 +193,7 @@ export const ProfileForm = ({ profile = {}, promiseStatus, onProfileSave, server
                                             <Button variant="text" color="error" onClick={() => setEditMod(false)}>
                                                 Скасувати
                                             </Button>
-                                            <Button
-                                                variant="text"
-                                                color="primary"
-                                                type="submit"
-                                                disabled={formik.isSubmitting || !formik.isValid}
-                                            >
+                                            <Button variant="text" color="primary" type="submit" disabled={formik.isSubmitting}>
                                                 Зберегти
                                             </Button>
                                         </Box>

+ 2 - 7
src/components/admin/AdminCategoryPage/CategoryForm.js

@@ -196,17 +196,12 @@ const CategoryForm = ({
                         <Button variant="contained" onClick={() => setIsDeleteModalOpen(true)} disabled={formik.isSubmitting} color="error">
                             Видалити
                         </Button>
-                        <Button
-                            variant="contained"
-                            onClick={() => setIsNew(true)}
-                            disabled={!formik.isValid || formik.isSubmitting}
-                            type="submit"
-                        >
+                        <Button variant="contained" onClick={() => setIsNew(true)} disabled={formik.isSubmitting} type="submit">
                             Зберегти як новий
                         </Button>
                     </>
                 )}
-                <Button variant="contained" onClick={() => setIsNew(false)} disabled={!formik.isValid || formik.isSubmitting} type="submit">
+                <Button variant="contained" onClick={() => setIsNew(false)} disabled={formik.isSubmitting} type="submit">
                     Зберегти
                 </Button>
             </Stack>

+ 2 - 12
src/components/admin/AdminOrderPage/OrderForm.js

@@ -149,22 +149,12 @@ export const OrderForm = ({
                                 >
                                     Видалити
                                 </Button>
-                                <Button
-                                    variant="contained"
-                                    onClick={() => setIsNew(true)}
-                                    disabled={!formik.isValid || formik.isSubmitting}
-                                    type="submit"
-                                >
+                                <Button variant="contained" onClick={() => setIsNew(true)} disabled={formik.isSubmitting} type="submit">
                                     Зберегти як новий
                                 </Button>
                             </>
                         )}
-                        <Button
-                            variant="contained"
-                            onClick={() => setIsNew(false)}
-                            disabled={!formik.isValid || formik.isSubmitting}
-                            type="submit"
-                        >
+                        <Button variant="contained" onClick={() => setIsNew(false)} disabled={formik.isSubmitting} type="submit">
                             Зберегти
                         </Button>
                     </Stack>

+ 2 - 7
src/components/admin/AdminUserPage.js/UserForm.js

@@ -259,16 +259,11 @@ export const UserForm = ({
 
             <Stack direction="row" sx={{ mt: 3 }} justifyContent="flex-end" spacing={1}>
                 {!!user._id && (
-                    <Button
-                        variant="contained"
-                        onClick={() => setIsNew(true)}
-                        disabled={!formik.isValid || formik.isSubmitting}
-                        type="submit"
-                    >
+                    <Button variant="contained" onClick={() => setIsNew(true)} disabled={formik.isSubmitting} type="submit">
                         Зберегти як новий
                     </Button>
                 )}
-                <Button variant="contained" onClick={() => setIsNew(false)} disabled={!formik.isValid || formik.isSubmitting} type="submit">
+                <Button variant="contained" onClick={() => setIsNew(false)} disabled={formik.isSubmitting} type="submit">
                     Зберегти
                 </Button>
             </Stack>