Added expand controls to map dice

This commit is contained in:
Mitchell McCaffrey
2020-05-08 15:09:40 +10:00
parent 07e85f46a3
commit fee7a270e4
5 changed files with 253 additions and 192 deletions

View File

@@ -1,4 +1,4 @@
import React, { useState, Fragment, useRef } from "react";
import React, { useState, Fragment } from "react";
import { IconButton, Flex, Box } from "theme-ui";
import RadioIconButton from "./controls/RadioIconButton";
@@ -144,9 +144,6 @@ function MapContols({
);
}
const controlsRef = useRef();
const settingsRef = useRef();
function getToolSettings() {
const Settings = toolsById[selectedToolId].SettingsComponent;
if (Settings) {
@@ -161,7 +158,6 @@ function MapContols({
borderRadius: "4px",
}}
p={1}
ref={settingsRef}
>
<Settings
settings={toolSettings[selectedToolId]}
@@ -189,7 +185,6 @@ function MapContols({
alignItems: "center",
}}
mx={1}
ref={controlsRef}
>
{controls}
</Flex>