mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-13 05:38:47 +01:00
chore: format JSX components
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
d7ec7355c9
commit
ddff5db14a
6 changed files with 17 additions and 11 deletions
|
|
@ -28,9 +28,7 @@ export const MultiLineTextField = memo(
|
|||
component="span"
|
||||
{...sanitizeFieldRestProps(rest)}
|
||||
>
|
||||
{lines.length === 0 && emptyText
|
||||
? emptyText
|
||||
: lines}
|
||||
{lines.length === 0 && emptyText ? emptyText : lines}
|
||||
</Typography>
|
||||
)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
import DOMPurify from 'dompurify'
|
||||
import { Fragment, useMemo } from 'react'
|
||||
|
||||
export const SafeHTML = ({
|
||||
children,
|
||||
}) => {
|
||||
export const SafeHTML = ({ children }) => {
|
||||
const purified = useMemo(() => {
|
||||
const purify = DOMPurify()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue