muffin-admin 6.1.0 → 6.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muffin-admin",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -8,6 +8,7 @@ import TableCell from "@mui/material/TableCell"
8
8
  import TableRow from "@mui/material/TableRow"
9
9
  import Typography from "@mui/material/Typography"
10
10
  import { useTranslate } from "react-admin"
11
+ import { VERSION } from "."
11
12
  import { HelpLink } from "./common/HelpLink"
12
13
  import { useMuffinAdminOpts } from "./hooks"
13
14
  import { AdminDashboardBlock } from "./types"
@@ -26,9 +27,11 @@ export function MuffinDashboard() {
26
27
  {buildAdmin(["dashboard-content"])}
27
28
  <AdminCards src={dashboard} />
28
29
  </Grid>
29
- <Typography variant="body2" color="textSecondary" align="center" my={1}>
30
- Muffin Admin v.{process.env.VERSION}
31
- </Typography>
30
+ {VERSION && (
31
+ <Typography variant="body2" color="textSecondary" align="center" my={1}>
32
+ Muffin Admin v.{VERSION}
33
+ </Typography>
34
+ )}
32
35
  </Stack>
33
36
  )
34
37
  }
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.VERSION
38
+ export const VERSION = process?.env.MUFFIN_ADMIN_VERSION