muffin-admin 6.1.1 → 6.1.3

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": "6.1.1",
3
+ "version": "6.1.3",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -103,7 +103,7 @@ function ActionButtonBase({
103
103
  const PayloadForm = findBuilder(["action-form", id, resource]) || (schema && CommonPayload)
104
104
  if (!PayloadForm)
105
105
  return (
106
- <Button label={label} title={title} onClick={onHandle} disabled={isPending}>
106
+ <Button label={label} title={title} onClick={() => onHandle()} disabled={isPending}>
107
107
  {buildIcon(icon)}
108
108
  </Button>
109
109
  )
@@ -160,11 +160,11 @@ export function CommonPayload({
160
160
  title={
161
161
  help
162
162
  ? ((
163
- <Stack alignItems="flex-start">
164
- <span>{translate(title, { _: title })}</span>
165
- <HelpLink href={help} style={{ alignSelf: "flex-end" }} />
166
- </Stack>
167
- ) as any)
163
+ <Stack alignItems="flex-start">
164
+ <span>{translate(title, { _: title })}</span>
165
+ <HelpLink href={help} style={{ alignSelf: "flex-end" }} />
166
+ </Stack>
167
+ ) as any)
168
168
  : translate(title, { _: title })
169
169
  }
170
170
  actions={
package/src/index.tsx CHANGED
@@ -35,4 +35,4 @@ export async function initAdmin(prefix = "", containerId: string = "root") {
35
35
  )
36
36
  }
37
37
 
38
- export const VERSION = process?.env.MUFFIN_ADMIN_VERSION
38
+ export const VERSION = "6.1.1"