diff --git a/app/components/widget-builder.tsx b/app/components/widget-builder.tsx index 5eaf3ec..8792482 100644 --- a/app/components/widget-builder.tsx +++ b/app/components/widget-builder.tsx @@ -35,6 +35,7 @@ export default function WidgetBuilder({ region, accountId }: WidgetBuilderProps) const [showMatchHistory, setShowMatchHistory] = useState(true); const [matchHistoryShowsToday, setMatchHistoryShowsToday] = useState(false); const [numMatches, setNumMatches] = useState(10); + const [opacity, setOpacity] = useState(100); const { data, error } = useQuery({ queryKey: ["available-variables"], @@ -62,6 +63,7 @@ export default function WidgetBuilder({ region, accountId }: WidgetBuilderProps) url.searchParams.set("showMatchHistory", showMatchHistory.toString()); url.searchParams.set("matchHistoryShowsToday", matchHistoryShowsToday.toString()); url.searchParams.set("numMatches", numMatches.toString()); + url.searchParams.set("opacity", opacity.toString()); for (const [arg, value] of Object.entries(extraArgs)) { if (value) url.searchParams.set(arg, value); } @@ -81,6 +83,7 @@ export default function WidgetBuilder({ region, accountId }: WidgetBuilderProps) showMatchHistory={showMatchHistory} matchHistoryShowsToday={matchHistoryShowsToday} numMatches={numMatches} + opacity={opacity} />, ); break; @@ -100,6 +103,7 @@ export default function WidgetBuilder({ region, accountId }: WidgetBuilderProps) matchHistoryShowsToday, showMatchHistory, numMatches, + opacity, ]); const themes: { value: Theme; label: string }[] = [ @@ -110,70 +114,76 @@ export default function WidgetBuilder({ region, accountId }: WidgetBuilderProps) return (
-
-
- - -
- -
- - -
- -
-
- setShowHeader(e.target.checked)} - className="rounded border-gray-300 text-blue-500 focus:ring-blue-500" - /> -