Skip to content

Commit

Permalink
Merge pull request #1000 from CodeForAfrica/ft/climatemapped-arm-build
Browse files Browse the repository at this point in the history
ClimateMappedAfrica Fix Zoom Bug
  • Loading branch information
kelvinkipruto authored Nov 14, 2024
2 parents 8d5860e + 4fa0c2d commit f4e0b0c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { RichText } from "@commons-ui/payload";
import { Grid, Typography, IconButton, Avatar } from "@mui/material";
import { useTour } from "@reactour/tour";
import Image from "next/legacy/image";
import PropTypes from "prop-types";
import React from "react";

import useStyles from "./useStyles";

import CloseIcon from "@/climatemappedafrica/assets/icons/close.svg";
import Image from "@/climatemappedafrica/components/Image";

function TutorialStep({ description, title, image, selector, ...props }) {
const classes = useStyles(props);
Expand Down
36 changes: 36 additions & 0 deletions apps/climatemappedafrica/src/payload/globals/HURUMap/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,42 @@ const Profile = {
},
],
},
{
name: "zoom",
type: "group",
fields: [
{
type: "row",
fields: [
{
name: "desktop",
label: "Zoom Level for Desktop",
type: "number",
defaultValue: 3.05,
required: true,
admin: {
description:
"Indicates how the map should appear on desktop devices",
},
},
{
name: "mobile",
label: "Zoom Level for Mobile",
type: "number",
required: true,
defaultValue: 2.7,
admin: {
description:
"Indicates how the map should appear on small devices",
},
},
],
},
],
admin: {
hideGutter: true,
},
},
{
name: "hasData",
type: "checkbox",
Expand Down

0 comments on commit f4e0b0c

Please sign in to comment.