🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
chore: format JSX components
Deluanddff5db14a04
diff --git a/ui/src/album/AlbumDetails.jsx b/ui/src/album/AlbumDetails.jsxindex 3263fd55e..bd6a41523 100644--- a/ui/src/album/AlbumDetails.jsx+++ b/ui/src/album/AlbumDetails.jsx@@ -351,7 +351,9 @@ const AlbumDetails = (props) => {variant={'body1'}onClick={() => setExpanded(!expanded)}>- <span><SafeHTML>{notes}</SafeHTML></span>+ <span>+ <SafeHTML>{notes}</SafeHTML>+ </span></Typography></Collapse>)}@@ -371,7 +373,9 @@ const AlbumDetails = (props) => {variant={'body1'}onClick={() => setExpanded(!expanded)}>- <span><SafeHTML>{notes}</SafeHTML></span>+ <span>+ <SafeHTML>{notes}</SafeHTML>+ </span></Typography></Collapse></div>diff --git a/ui/src/artist/ArtistShow.jsx b/ui/src/artist/ArtistShow.jsxindex 668e07212..ba8586d06 100644--- a/ui/src/artist/ArtistShow.jsx+++ b/ui/src/artist/ArtistShow.jsx@@ -71,7 +71,9 @@ const ArtistDetails = (props) => {}, [record.id])const Component = isDesktop ? DesktopArtistDetails : MobileArtistDetails- return <Component artistInfo={artistInfo} record={record} biography={biography} />+ return (+ <Component artistInfo={artistInfo} record={record} biography={biography} />+ )}const ArtistShowLayout = (props) => {diff --git a/ui/src/artist/DesktopArtistDetails.jsx b/ui/src/artist/DesktopArtistDetails.jsxindex f999b02ff..1e074ce4e 100644--- a/ui/src/artist/DesktopArtistDetails.jsx+++ b/ui/src/artist/DesktopArtistDetails.jsx@@ -173,7 +173,9 @@ const DesktopArtistDetails = ({ artistInfo, record, biography }) => {variant={'body1'}onClick={() => setExpanded(!expanded)}>- <span><SafeHTML>{biography}</SafeHTML></span>+ <span>+ <SafeHTML>{biography}</SafeHTML>+ </span></Typography></Collapse></CardContent>diff --git a/ui/src/artist/MobileArtistDetails.jsx b/ui/src/artist/MobileArtistDetails.jsxindex de9b3867a..e8c044d66 100644--- a/ui/src/artist/MobileArtistDetails.jsx+++ b/ui/src/artist/MobileArtistDetails.jsx@@ -169,7 +169,9 @@ const MobileArtistDetails = ({ artistInfo, biography, record }) => {<div className={classes.biography}><Collapse collapsedHeight={'1.5em'} in={expanded} timeout={'auto'}><Typography variant={'body1'} onClick={() => setExpanded(!expanded)}>- <span><SafeHTML>{biography}</SafeHTML></span>+ <span>+ <SafeHTML>{biography}</SafeHTML>+ </span></Typography></Collapse></div>diff --git a/ui/src/common/MultiLineTextField.jsx b/ui/src/common/MultiLineTextField.jsxindex d95def2f8..1218d4bd6 100644--- a/ui/src/common/MultiLineTextField.jsx+++ b/ui/src/common/MultiLineTextField.jsx@@ -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>)},diff --git a/ui/src/common/SafeHTML.jsx b/ui/src/common/SafeHTML.jsxindex 7d73e17fe..643b538b8 100644--- a/ui/src/common/SafeHTML.jsx+++ b/ui/src/common/SafeHTML.jsx@@ -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()