Allow widget field visibility to be configurable

This commit is contained in:
Jason Fischer 2022-09-29 21:15:25 -07:00
parent 756f6310af
commit 9b7d6b196f
No known key found for this signature in database
30 changed files with 246 additions and 219 deletions

View file

@ -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>