Refactor dialogs, make it simple to add a new dialog to all views

This commit is contained in:
Deluan
2023-01-24 11:53:42 -05:00
parent 26be5b8396
commit 17d9573f4d
10 changed files with 14 additions and 28 deletions
-4
View File
@@ -8,10 +8,8 @@ import ArtistExternalLinks from './ArtistExternalLink'
import config from '../config'
import { ArtistContextMenu, RatingField } from '../common'
import Lightbox from 'react-image-lightbox'
import { AddToPlaylistDialog } from '../dialogs'
import ExpandInfoDialog from '../dialogs/ExpandInfoDialog'
import AlbumInfo from '../album/AlbumInfo'
import DownloadMenuDialog from '../dialogs/DownloadMenuDialog'
import subsonic from '../subsonic'
const useStyles = makeStyles(
@@ -152,8 +150,6 @@ const DesktopArtistDetails = ({ artistInfo, record, biography }) => {
/>
)}
</Card>
<AddToPlaylistDialog />
<DownloadMenuDialog />
<ExpandInfoDialog content={<AlbumInfo />} />
</div>
)