Skip to content

Commit

Permalink
fix: remove pwa hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Jun 28, 2024
1 parent 32cc0fe commit 702ead1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 87 deletions.
11 changes: 1 addition & 10 deletions pwa/components/admin/book/Create.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<CreateGuesser {...props} title="Create book" mutationOptions={{ onSuccess }}>
<CreateGuesser {...props} title="Create book">
<Form/>
</CreateGuesser>
);
Expand Down
1 change: 0 additions & 1 deletion pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
77 changes: 1 addition & 76 deletions pwa/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 702ead1

Please sign in to comment.