This commit is contained in:
Ben Phelps 2022-09-14 09:09:11 +03:00
parent 34f7bd4341
commit 62188ffdc7
5 changed files with 42 additions and 36 deletions

View file

@ -48,13 +48,13 @@ const widgetMappings = {
prowlarr: Prowlarr,
};
export default function Widget({ service, state }) {
export default function Widget({ service }) {
const { t } = useTranslation("common");
const ServiceWidget = widgetMappings[service.widget.type];
if (ServiceWidget) {
return <ServiceWidget state={state} service={service} />;
return <ServiceWidget service={service} />;
}
return (