mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
cleanup
This commit is contained in:
parent
34f7bd4341
commit
62188ffdc7
5 changed files with 42 additions and 36 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue