muffin-admin 3.0.0 → 3.0.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muffin-admin",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -7,10 +7,10 @@ export function MuffinResourceCreate() {
7
7
  const { name, create } = useMuffinResourceOpts()
8
8
  if (!create) return null
9
9
 
10
- const Toolbar = findBuilder(["create-toolbar", name])
10
+ const ActionsToolbar = findBuilder(["create-toolbar", name])
11
11
 
12
12
  return (
13
- <Create actions={<Toolbar />}>
13
+ <Create actions={<ActionsToolbar />}>
14
14
  <SimpleForm>{buildAdmin(["create-inputs", name], create)}</SimpleForm>
15
15
  </Create>
16
16
  )
@@ -5,6 +5,7 @@ import {
5
5
  SaveButton,
6
6
  ShowButton,
7
7
  SimpleForm,
8
+ Toolbar,
8
9
  TopToolbar,
9
10
  } from "react-admin"
10
11
  import { buildRA } from "./buildRA"
@@ -20,10 +21,10 @@ export function MuffinEdit() {
20
21
  if (!edit) return null
21
22
 
22
23
  const { inputs, remove } = edit
23
- const Toolbar = findBuilder(["edit-toolbar", name])
24
+ const ActionsToolbar = findBuilder(["edit-toolbar", name])
24
25
 
25
26
  return (
26
- <Edit actions={<Toolbar />} mutationMode={mutationMode}>
27
+ <Edit actions={<ActionsToolbar />} mutationMode={mutationMode}>
27
28
  <SimpleForm
28
29
  toolbar={
29
30
  <Toolbar>
@@ -7,10 +7,10 @@ import { buildAdmin, findBuilder, setupAdmin } from "./utils"
7
7
 
8
8
  export function MuffinShow() {
9
9
  const { show, name } = useMuffinResourceOpts()
10
- const Toolbar = findBuilder(["show-toolbar", name])
10
+ const ActionsToolbar = findBuilder(["show-toolbar", name])
11
11
 
12
12
  return (
13
- <Show actions={<Toolbar />}>
13
+ <Show actions={<ActionsToolbar />}>
14
14
  <SimpleShowLayout>{buildAdmin(["show-fields", name], show)}</SimpleShowLayout>
15
15
  </Show>
16
16
  )