@applica-software-guru/react-admin 1.5.280 → 1.5.281
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ra-buttons/EditInDialogButton.d.ts +2 -2
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-buttons/EditInDialogButton.tsx +2 -2
- package/src/playground/App.jsx +2 -2
package/package.json
CHANGED
|
@@ -66,11 +66,11 @@ type EditInDialogButtonProps = PropsWithChildren &
|
|
|
66
66
|
* console.log(values); // { title: 'Hello World' }
|
|
67
67
|
* closeDialog();
|
|
68
68
|
* }
|
|
69
|
-
* <
|
|
69
|
+
* <EditInDialogButton onSubmit={handleSubmit}>
|
|
70
70
|
* <SimpleForm>
|
|
71
71
|
* <TextInput source="title" />
|
|
72
72
|
* </SimpleForm>
|
|
73
|
-
* </
|
|
73
|
+
* </EditInDialogButton>
|
|
74
74
|
*
|
|
75
75
|
*/
|
|
76
76
|
onSubmit?: SubmitFunction;
|
package/src/playground/App.jsx
CHANGED
|
@@ -9,7 +9,7 @@ import { ApplicaDataProvider, createAttachmentsParser } from '@applica-software-
|
|
|
9
9
|
import { ApplicaAuthProvider, LocalStorage } from '@applica-software-guru/iam-client';
|
|
10
10
|
import { CustomRoutes } from 'ra-core';
|
|
11
11
|
import { Route } from 'react-router-dom';
|
|
12
|
-
import { createJsonI18nProvider } from '@/i18n';
|
|
12
|
+
import { createI18nProvider, createJsonI18nProvider } from '@/i18n';
|
|
13
13
|
|
|
14
14
|
const authProvider = new ApplicaAuthProvider(API_URL, new LocalStorage());
|
|
15
15
|
const dataProvider = new ApplicaDataProvider({
|
|
@@ -20,7 +20,7 @@ const dataProvider = new ApplicaDataProvider({
|
|
|
20
20
|
attachmentsParser: createAttachmentsParser(),
|
|
21
21
|
HttpErrorClass: HttpError
|
|
22
22
|
});
|
|
23
|
-
const i18nProvider =
|
|
23
|
+
const i18nProvider = createI18nProvider({ apiUrl: API_URL, allowMissing: true, defaultLocale: 'it' });
|
|
24
24
|
function App() {
|
|
25
25
|
return (
|
|
26
26
|
<ApplicaAdmin
|