mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
refactor(svg): inline *arr logos and optimize SVG assets (#1562)
This commit is contained in:
@@ -7,6 +7,8 @@ import type {
|
||||
RadarrSettings,
|
||||
SonarrSettings,
|
||||
} from '../../../server/lib/settings';
|
||||
import RadarrLogo from '../../assets/services/radarr.svg';
|
||||
import SonarrLogo from '../../assets/services/sonarr.svg';
|
||||
import globalMessages from '../../i18n/globalMessages';
|
||||
import Alert from '../Common/Alert';
|
||||
import Badge from '../Common/Badge';
|
||||
@@ -125,11 +127,11 @@ const ServerInstance: React.FC<ServerInstanceProps> = ({
|
||||
</p>
|
||||
</div>
|
||||
<a href={serviceUrl} className="opacity-50 hover:opacity-100">
|
||||
<img
|
||||
className="flex-shrink-0 w-10 h-10"
|
||||
src={`/images/${isSonarr ? 'sonarr' : 'radarr'}_logo.svg`}
|
||||
alt={isSonarr ? 'Sonarr' : 'Radarr'}
|
||||
/>
|
||||
{isSonarr ? (
|
||||
<SonarrLogo className="flex-shrink-0 w-10 h-10" />
|
||||
) : (
|
||||
<RadarrLogo className="flex-shrink-0 w-10 h-10" />
|
||||
)}
|
||||
</a>
|
||||
</div>
|
||||
<div className="border-t border-gray-800">
|
||||
|
Reference in New Issue
Block a user