@fonderie/react-admin-screens 1.6.0 → 1.6.1

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/index.js CHANGED
@@ -2783,7 +2783,13 @@ function AdminShell({
2783
2783
  system: editing.system,
2784
2784
  onSaved: () => setEditing(null),
2785
2785
  onDeleted: () => setEditing(null),
2786
- onAddLocale: (type) => setEditing({ kind: "template-new", type }),
2786
+ onAddLocale: (type, c) => setEditing({ kind: "template-new", type, locales: c.locales }),
2787
+ onSelectLocale: (tpl) => setEditing({
2788
+ kind: "template",
2789
+ type: tpl.type,
2790
+ locale: tpl.locale,
2791
+ system: tpl.system === true
2792
+ }),
2787
2793
  uiLocale: locale
2788
2794
  },
2789
2795
  `${editing.type}:${editing.locale ?? ""}`