mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-18 18:49:50 +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
|
@ -30,7 +30,7 @@ export default function Component({ service }) {
|
|||
|
||||
if (!symbols || symbols.length === 0) {
|
||||
return (
|
||||
<Container>
|
||||
<Container service={service}>
|
||||
<Block value={t("coinmarketcap.configure")} />
|
||||
</Container>
|
||||
);
|
||||
|
@ -42,7 +42,7 @@ export default function Component({ service }) {
|
|||
|
||||
if (!statsData || !dateRange) {
|
||||
return (
|
||||
<Container>
|
||||
<Container service={service}>
|
||||
<Block value={t("coinmarketcap.configure")} />
|
||||
</Container>
|
||||
);
|
||||
|
@ -51,7 +51,7 @@ export default function Component({ service }) {
|
|||
const { data } = statsData;
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Container service={service}>
|
||||
<div className={classNames(service.description ? "-top-10" : "-top-8", "absolute right-1")}>
|
||||
<Dropdown options={dateRangeOptions} value={dateRange} setValue={setDateRange} />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue