Typescript

This commit is contained in:
Mitchell McCaffrey 2021-07-16 20:57:05 +10:00
parent a1fb67df7b
commit 01eabcef3d

View File

@ -1,11 +1,18 @@
import React from "react";
import { Button } from "theme-ui";
import { useGroup } from "../../contexts/GroupContext";
import { findGroup } from "../../helpers/group";
function SelectMapSelectButton({ onMapSelect, disabled }) {
type SelectMapSelectButtonProps = {
onMapSelect: (mapId: string) => void;
disabled: boolean;
};
function SelectMapSelectButton({
onMapSelect,
disabled,
}: SelectMapSelectButtonProps) {
const { activeGroups, selectedGroupIds } = useGroup();
function handleSelectClick() {