cleanup
This commit is contained in:
@@ -64,7 +64,8 @@ const ServerInfoWidget = ({ systemInfo, onScanLibrariesClick, onRestartClick, on
|
||||
onClick={onShutdownClick}
|
||||
color='error'
|
||||
sx={{
|
||||
fontWeight: 'bold' }}
|
||||
fontWeight: 'bold'
|
||||
}}
|
||||
>
|
||||
{globalize.translate('ButtonShutdown')}
|
||||
</Button>
|
||||
|
||||
@@ -25,16 +25,6 @@ const getNowPlayingImageUrl = (item: BaseItemDto) => {
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
if (item?.BackdropImageTag) {
|
||||
return apiClient.getScaledImageUrl(item.BackdropItemId, {
|
||||
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
|
||||
type: 'Backdrop',
|
||||
tag: item.BackdropImageTag
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
const imageTags = item?.ImageTags || {};
|
||||
|
||||
if (item && item.Id && imageTags.Thumb) {
|
||||
@@ -53,16 +43,6 @@ const getNowPlayingImageUrl = (item: BaseItemDto) => {
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
if (item?.ThumbImageTag) {
|
||||
return apiClient.getScaledImageUrl(item.ThumbItemId, {
|
||||
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
|
||||
type: 'Thumb',
|
||||
tag: item.ThumbImageTag
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
if (item && item.Id && imageTags.Primary) {
|
||||
return apiClient.getScaledImageUrl(item.Id, {
|
||||
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
|
||||
@@ -71,16 +51,6 @@ const getNowPlayingImageUrl = (item: BaseItemDto) => {
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
if (item?.PrimaryImageTag) {
|
||||
return apiClient.getScaledImageUrl(item.PrimaryImageItemId, {
|
||||
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
|
||||
type: 'Primary',
|
||||
tag: item.PrimaryImageTag
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
if (item?.AlbumPrimaryImageTag && item.AlbumId) {
|
||||
return apiClient.getScaledImageUrl(item.AlbumId, {
|
||||
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import React, { useCallback, useMemo, useState } from 'react';
|
||||
import Page from 'components/Page';
|
||||
import globalize from 'lib/globalize';
|
||||
import Box from '@mui/material/Box';
|
||||
|
||||
Reference in New Issue
Block a user