typescript workaround no more necessary

Massimo Melina committed Aug 9, 2022 at 18:31 UTC 3189d6d93c1d5feb701ef7d58bcca4f24adfe5b4
2 files changed +5 -5
admin/package.json
+3 -3
@@ -15,9 +15,9 @@
15 "@hfs/shared": "*",
16 "@emotion/styled": "^11.10.0",
17 "@mui/icons-material": "^5.8.4",
18 - "@mui/lab": "^5.0.0-alpha.93",
19 - "@mui/material": "^5.9.3",
20 - "@mui/x-data-grid": "^5.12.0",
18 + "@mui/lab": "^5.0.0-alpha.94",
19 + "@mui/material": "^5.10.0",
20 + "@mui/x-data-grid": "^5.15.1",
21 "js-sha512": "^0.8.0",
22 "react": "^18.2.0",
23 "react-dom": "^18.2.0",
mui-grid-form/src/StringStringField.ts
+2 -2
@@ -1,6 +1,6 @@
1 // This file is part of HFS - Copyright 2021-2022, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 -import { createElement as h, ReactElement, useRef } from 'react'
3 +import { createElement as h, useRef } from 'react'
4 import { Grid, IconButton } from '@mui/material'
5 import { Add, Delete } from '@mui/icons-material'
6 import { FieldProps, StringField } from './Form'
@@ -82,6 +82,6 @@ export function StringStringField({ value, onChange, keyLabel='key', valueLabel=
82 onChange(){},
83 disabled: true,
84 })),
85 - ) as ReactElement // temporary workaround https://github.com/mui/material-ui/issues/33165
85 + )
86 }
87