Skip to content

Commit

Permalink
Turn off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Sep 25, 2024
1 parent 843a598 commit ed313e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/pages/policy/PolicyRightSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function FullLiteToggle() {
// Selector like the dataset selector that toggles between 'full' and 'lite' versions of the dataset.
// should set a query param with mode=light or mode=full
const [searchParams, setSearchParams] = useSearchParams();
const value = searchParams.get("mode") || "lite";
const value = searchParams.get("mode") || "full";
const displayCategory = useDisplayCategory();

return (
Expand All @@ -111,11 +111,11 @@ function FullLiteToggle() {
}}
>
<Switch
checked={value === "full"}
checked={value === "lite"}
size={displayCategory !== "mobile" && "small"}
onChange={(checked) => {
let newSearch = copySearchParams(searchParams);
newSearch.set("mode", checked ? "full" : "lite");
newSearch.set("mode", checked ? "lite" : "full");
setSearchParams(newSearch);
}}
/>
Expand All @@ -125,11 +125,11 @@ function FullLiteToggle() {
fontSize: displayCategory !== "mobile" && "0.95em",
}}
>
Use full dataset
Use a smaller sample
</p>
<Tooltip
placement="topRight"
title="When unchecked, limit simulations to a random 10,000 household set."
title="When checked, limit simulations to a random 10,000 household set."
trigger={displayCategory === "mobile" ? "click" : "hover"}
>
<QuestionCircleOutlined
Expand Down
2 changes: 1 addition & 1 deletion src/pages/policy/output/FetchAndDisplayImpact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function FetchAndDisplayImpact(props) {
const timePeriod = searchParams.get("timePeriod");
const reformPolicyId = searchParams.get("reform");
const baselinePolicyId = searchParams.get("baseline");
const maxHouseholds = searchParams.get("mode") === "full" ? null : 10_000;
const maxHouseholds = searchParams.get("mode") === "lite" ? 10_000 : null;
const renamed = searchParams.get("renamed");

const [impact, setImpact] = useState(null);
Expand Down

0 comments on commit ed313e9

Please sign in to comment.