From 702ead1dc1ba70721aaa9dcae1d7dbda1b22c862 Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:25:26 +0200 Subject: [PATCH] fix: remove pwa hotfix --- pwa/components/admin/book/Create.tsx | 11 +--- pwa/package.json | 1 - pwa/pnpm-lock.yaml | 77 +--------------------------- 3 files changed, 2 insertions(+), 87 deletions(-) diff --git a/pwa/components/admin/book/Create.tsx b/pwa/components/admin/book/Create.tsx index 4fc765f09..63993815e 100644 --- a/pwa/components/admin/book/Create.tsx +++ b/pwa/components/admin/book/Create.tsx @@ -1,19 +1,10 @@ import { CreateGuesser, type CreateGuesserProps } from "@api-platform/admin"; -import { useNotify, useRedirect } from "ra-core"; import { Form } from "./Form"; export const Create = (props: CreateGuesserProps) => { - const notify = useNotify(); - const redirect = useRedirect(); - - const onSuccess = () => { - notify('Element created'); - redirect('list', 'admin/books'); - }; - return ( - +
); diff --git a/pwa/package.json b/pwa/package.json index cc8f99153..9fffc6495 100644 --- a/pwa/package.json +++ b/pwa/package.json @@ -26,7 +26,6 @@ "next-auth": "5.0.0-beta.16", "picocolors": "^1.0.1", "postcss": "^8.4.38", - "ra-core": "^5.0.2", "ra-i18n-polyglot": "^4.16.19", "ra-language-english": "^4.16.19", "ra-language-french": "^4.16.19", diff --git a/pwa/pnpm-lock.yaml b/pwa/pnpm-lock.yaml index e27055cd2..3f5882504 100644 --- a/pwa/pnpm-lock.yaml +++ b/pwa/pnpm-lock.yaml @@ -56,9 +56,6 @@ importers: postcss: specifier: ^8.4.38 version: 8.4.38 - ra-core: - specifier: ^5.0.2 - version: 5.0.2(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.52.0(react@18.3.1))(react-router-dom@6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-router@6.24.0(react@18.3.1))(react@18.3.1) ra-i18n-polyglot: specifier: ^4.16.19 version: 4.16.19(history@5.3.0)(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.52.0(react@18.3.1))(react-router-dom@6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-router@6.24.0(react@18.3.1))(react@18.3.1) @@ -70,7 +67,7 @@ importers: version: 4.16.19(history@5.3.0)(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.52.0(react@18.3.1))(react-router-dom@6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-router@6.24.0(react@18.3.1))(react@18.3.1) ra-ui-materialui: specifier: ^4.16.19 - version: 4.16.19(v4qvdct2fx2p3amytn4ylxcefe) + version: 4.16.19(zqow5nrnjf7hdq4u4yfuspyw5u) react: specifier: ^18.3.1 version: 18.3.1 @@ -1084,9 +1081,6 @@ packages: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} - date-fns@3.6.0: - resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==} - debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} peerDependencies: @@ -1334,9 +1328,6 @@ packages: eventemitter3@4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} - eventemitter3@5.0.1: - resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} - fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1558,10 +1549,6 @@ packages: resolution: {integrity: sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==} engines: {'0': node >= 0.4.0} - inflection@3.0.0: - resolution: {integrity: sha512-1zEJU1l19SgJlmwqsEyFTbScw/tkMHFenUo//Y0i+XEP83gDFdMvPizAD/WGcE+l1ku12PcTVHQhO6g5E0UCMw==} - engines: {node: '>=18.0.0'} - inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. @@ -2168,15 +2155,6 @@ packages: react-router: ^6.1.0 react-router-dom: ^6.1.0 - ra-core@5.0.2: - resolution: {integrity: sha512-P3YVEqdx3gDsdQPLcr4T4555MacC4Y1YBQ9CP5zvRPGYD9oJREMrQy6DLphWfqsQb7hlf1Za9Z/CTsZNcmn+TA==} - peerDependencies: - react: ^18.0.0 || ^19.0.0 - react-dom: ^18.0.0 || ^19.0.0 - react-hook-form: ^7.52.0 - react-router: ^6.22.0 - react-router-dom: ^6.22.0 - ra-i18n-polyglot@4.16.19: resolution: {integrity: sha512-gRnY0fUn61cVtR36Qf5mgULXnQALRrjZ8Hnp7w+U9YvtrzapNTuIyZem3Tp0QL+/jRgxeqlQW7dqPYdV0bC7vg==} @@ -3711,8 +3689,6 @@ snapshots: dependencies: '@babel/runtime': 7.24.7 - date-fns@3.6.0: {} - debug@3.2.7: dependencies: ms: 2.1.3 @@ -4115,8 +4091,6 @@ snapshots: eventemitter3@4.0.7: {} - eventemitter3@5.0.1: {} - fast-deep-equal@3.1.3: {} fast-glob@3.3.2: @@ -4346,8 +4320,6 @@ snapshots: inflection@1.13.4: {} - inflection@3.0.0: {} - inflight@1.0.6: dependencies: once: 1.4.0 @@ -4919,25 +4891,6 @@ snapshots: transitivePeerDependencies: - react-native - ra-core@5.0.2(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.52.0(react@18.3.1))(react-router-dom@6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-router@6.24.0(react@18.3.1))(react@18.3.1): - dependencies: - '@tanstack/react-query': 5.48.0(react@18.3.1) - clsx: 2.1.1 - date-fns: 3.6.0 - eventemitter3: 5.0.1 - hotscript: 1.0.13 - inflection: 3.0.0 - jsonexport: 3.2.0 - lodash: 4.17.21 - query-string: 7.1.3 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-error-boundary: 4.0.13(react@18.3.1) - react-hook-form: 7.52.0(react@18.3.1) - react-is: 18.3.1 - react-router: 6.24.0(react@18.3.1) - react-router-dom: 6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - ra-i18n-polyglot@4.16.19(history@5.3.0)(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.52.0(react@18.3.1))(react-router-dom@6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-router@6.24.0(react@18.3.1))(react@18.3.1): dependencies: node-polyglot: 2.5.0 @@ -4975,34 +4928,6 @@ snapshots: - react-router - react-router-dom - ra-ui-materialui@4.16.19(v4qvdct2fx2p3amytn4ylxcefe): - dependencies: - '@mui/icons-material': 5.15.20(@mui/material@5.15.20(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.3)(react@18.3.1) - '@mui/material': 5.15.20(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - autosuggest-highlight: 3.3.4 - clsx: 1.2.1 - css-mediaquery: 0.1.2 - dompurify: 2.5.5 - hotscript: 1.0.13 - inflection: 1.12.0 - jsonexport: 3.2.0 - lodash: 4.17.21 - prop-types: 15.8.1 - query-string: 7.1.3 - ra-core: 5.0.2(react-dom@18.3.1(react@18.3.1))(react-hook-form@7.52.0(react@18.3.1))(react-router-dom@6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-router@6.24.0(react@18.3.1))(react@18.3.1) - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-dropzone: 12.1.0(react@18.3.1) - react-error-boundary: 3.1.4(react@18.3.1) - react-hook-form: 7.52.0(react@18.3.1) - react-is: 18.3.1 - react-query: 3.39.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-router: 6.24.0(react@18.3.1) - react-router-dom: 6.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-transition-group: 4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - transitivePeerDependencies: - - react-native - ra-ui-materialui@4.16.19(zqow5nrnjf7hdq4u4yfuspyw5u): dependencies: '@mui/icons-material': 5.15.20(@mui/material@5.15.20(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@emotion/styled@11.11.5(@emotion/react@11.11.4(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react@18.3.1))(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@types/react@18.3.3)(react@18.3.1)