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/dist/MuffinResourceCreate.js +2 -2
- package/dist/MuffinResourceEdit.js +3 -3
- package/dist/MuffinResourceShow.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/MuffinResourceCreate.tsx +2 -2
- package/src/MuffinResourceEdit.tsx +3 -2
- package/src/MuffinResourceShow.tsx +2 -2
package/package.json
CHANGED
|
@@ -7,10 +7,10 @@ export function MuffinResourceCreate() {
|
|
|
7
7
|
const { name, create } = useMuffinResourceOpts()
|
|
8
8
|
if (!create) return null
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const ActionsToolbar = findBuilder(["create-toolbar", name])
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
|
-
<Create actions={<
|
|
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
|
|
24
|
+
const ActionsToolbar = findBuilder(["edit-toolbar", name])
|
|
24
25
|
|
|
25
26
|
return (
|
|
26
|
-
<Edit actions={<
|
|
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
|
|
10
|
+
const ActionsToolbar = findBuilder(["show-toolbar", name])
|
|
11
11
|
|
|
12
12
|
return (
|
|
13
|
-
<Show actions={<
|
|
13
|
+
<Show actions={<ActionsToolbar />}>
|
|
14
14
|
<SimpleShowLayout>{buildAdmin(["show-fields", name], show)}</SimpleShowLayout>
|
|
15
15
|
</Show>
|
|
16
16
|
)
|