Linkify urls in playlist comments
This commit is contained in:
@@ -3,6 +3,7 @@ import { Card, CardContent, Typography } from '@material-ui/core'
|
||||
import { makeStyles } from '@material-ui/core/styles'
|
||||
import { useTranslate } from 'react-admin'
|
||||
import { DurationField, SizeField } from '../common'
|
||||
import Linkify from '../common/Linkify'
|
||||
|
||||
const useStyles = makeStyles(
|
||||
(theme) => ({
|
||||
@@ -51,7 +52,9 @@ const PlaylistDetails = (props) => {
|
||||
<Typography variant="h5" className={classes.title}>
|
||||
{record.name || translate('ra.page.loading')}
|
||||
</Typography>
|
||||
<Typography component="h6">{record.comment}</Typography>
|
||||
<Typography component="h6">
|
||||
<Linkify text={record.comment} />
|
||||
</Typography>
|
||||
<Typography component="p">
|
||||
{record.songCount ? (
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user