Skip to content

Commit

Permalink
chore: upgrade to react-admin v5 (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon authored Aug 9, 2024
1 parent 7905ab8 commit 3af7858
Show file tree
Hide file tree
Showing 3 changed files with 662 additions and 933 deletions.
3 changes: 2 additions & 1 deletion pwa/components/admin/review/ReviewsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
DateField,
Datagrid,
List,
ListActions,
EditButton,
ShowButton,
ReferenceInput,
Expand Down Expand Up @@ -53,7 +54,7 @@ const filters = [
];

export const ReviewsList = () => (
<List filters={filters} exporter={false} hasCreate={false} title="Reviews">
<List filters={filters} exporter={false} actions={<ListActions hasCreate={false} />} title="Reviews">
<Datagrid>
<TextField source="user.name" label="User" sortable={false} />
<BookField source="book" sortable={false} />
Expand Down
44 changes: 22 additions & 22 deletions pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,46 @@
"test": "playwright test"
},
"dependencies": {
"@api-platform/admin": "^3.4.9",
"@api-platform/admin": "^4.0.1",
"@api-platform/api-doc-parser": "^0.16.4",
"@auth/core": "^0.34.1",
"@auth/core": "^0.34.2",
"@fontsource/poppins": "^5.0.14",
"@mui/icons-material": "^5.15.21",
"@mui/material": "^5.15.21",
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@tailwindcss/forms": "^0.5.7",
"@tanstack/react-query": "^5.48.0",
"@tanstack/react-query-devtools": "^5.48.0",
"@tanstack/react-query-next-experimental": "^5.48.0",
"autoprefixer": "^10.4.19",
"@tanstack/react-query": "^5.51.23",
"@tanstack/react-query-devtools": "^5.51.23",
"@tanstack/react-query-next-experimental": "^5.51.23",
"autoprefixer": "^10.4.20",
"formik": "^2.4.6",
"next": "^14.2.4",
"next": "^14.2.5",
"next-auth": "5.0.0-beta.16",
"picocolors": "^1.0.1",
"postcss": "^8.4.38",
"ra-i18n-polyglot": "^4.16.19",
"ra-language-english": "^4.16.19",
"ra-language-french": "^4.16.19",
"ra-ui-materialui": "^4.16.19",
"postcss": "^8.4.41",
"ra-i18n-polyglot": "^5.1.1",
"ra-language-english": "^5.1.1",
"ra-language-french": "^5.1.1",
"ra-ui-materialui": "^5.1.1",
"react": "^18.3.1",
"react-admin": "^4.16.19",
"react-admin": "^5.1.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.0",
"react-hook-form": "^7.52.2",
"react-spinners": "^0.14.1",
"sharp": "^0.33.4",
"slugify": "^1.6.6",
"tailwindcss": "^3.4.4",
"tailwindcss": "^3.4.9",
"yup": "^1.4.0"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@playwright/test": "^1.45.0",
"@babel/core": "^7.25.2",
"@playwright/test": "^1.46.0",
"@popperjs/core": "^2.11.8",
"@types/node": "^20.14.9",
"@types/node": "^22.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"typescript": "^5.5.2"
"eslint-config-next": "^14.2.5",
"typescript": "^5.5.4"
},
"peerDependencies": {
"@babel/core": "^7.19.0",
Expand Down
Loading

0 comments on commit 3af7858

Please sign in to comment.