mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
Allow widget field visibility to be configurable
This commit is contained in:
parent
756f6310af
commit
9b7d6b196f
30 changed files with 246 additions and 219 deletions
|
@ -17,10 +17,10 @@ export default function Component({ service }) {
|
|||
|
||||
if (!infoData) {
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("npm.enabled")} />
|
||||
<Block label={t("npm.disabled")} />
|
||||
<Block label={t("npm.total")} />
|
||||
<Container service={service}>
|
||||
<Block label="npm.enabled" />
|
||||
<Block label="npm.disabled" />
|
||||
<Block label="npm.total" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
@ -30,10 +30,10 @@ export default function Component({ service }) {
|
|||
const total = infoData.length;
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Block label={t("npm.enabled")} value={enabled} />
|
||||
<Block label={t("npm.disabled")} value={disabled} />
|
||||
<Block label={t("npm.total")} value={total} />
|
||||
<Container service={service}>
|
||||
<Block label="npm.enabled" value={enabled} />
|
||||
<Block label="npm.disabled" value={disabled} />
|
||||
<Block label="npm.total" value={total} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue