@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/package.json CHANGED
@@ -106,5 +106,5 @@
106
106
  "type": "module",
107
107
  "types": "dist/index.d.ts",
108
108
  "typings": "dist/index.d.ts",
109
- "version": "1.5.280"
109
+ "version": "1.5.281"
110
110
  }
@@ -66,11 +66,11 @@ type EditInDialogButtonProps = PropsWithChildren &
66
66
  * console.log(values); // { title: 'Hello World' }
67
67
  * closeDialog();
68
68
  * }
69
- * <CreateInDialogButton onSubmit={handleSubmit}>
69
+ * <EditInDialogButton onSubmit={handleSubmit}>
70
70
  * <SimpleForm>
71
71
  * <TextInput source="title" />
72
72
  * </SimpleForm>
73
- * </CreateInDialogButton>
73
+ * </EditInDialogButton>
74
74
  *
75
75
  */
76
76
  onSubmit?: SubmitFunction;
@@ -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 = createJsonI18nProvider({ path: `//${document.location.host}/i18n`, defaultLocale: 'en' });
23
+ const i18nProvider = createI18nProvider({ apiUrl: API_URL, allowMissing: true, defaultLocale: 'it' });
24
24
  function App() {
25
25
  return (
26
26
  <ApplicaAdmin