Use redux for ShareDialog

This commit is contained in:
Deluan
2023-01-24 13:04:00 -05:00
parent 17d9573f4d
commit 051e9c556d
9 changed files with 113 additions and 56 deletions
+2 -2
View File
@@ -10,11 +10,11 @@ import { Link } from '@material-ui/core'
import { DateField } from '../common'
export const ShareEdit = (props) => {
const { id } = props
const { id, basePath, hasCreate, ...rest } = props
const url = shareUrl(id)
return (
<Edit {...props}>
<SimpleForm>
<SimpleForm {...rest}>
<Link source="URL" href={url} target="_blank" rel="noopener noreferrer">
{url}
</Link>