From 8482a51332a192be059ed6d614eb9293dd24746b Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Fri, 27 May 2022 07:23:17 -0400 Subject: [PATCH] Minor fixes to get build to pass --- .../src/components/SquigglePlayground.tsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/components/src/components/SquigglePlayground.tsx b/packages/components/src/components/SquigglePlayground.tsx index bb19dee0..921a3282 100644 --- a/packages/components/src/components/SquigglePlayground.tsx +++ b/packages/components/src/components/SquigglePlayground.tsx @@ -8,10 +8,7 @@ import styled from "styled-components"; import { useForm, useWatch } from "react-hook-form"; import * as yup from "yup"; import { yupResolver } from "@hookform/resolvers/yup"; -import { - defaultBindings, - environment, -} from "@quri/squiggle-lang"; +import { defaultBindings, environment } from "@quri/squiggle-lang"; interface FieldFloatProps { label: string; @@ -132,7 +129,9 @@ const schema = yup type InputProps = { label: string; + children: ReactElement; }; + const InputItem: React.FC = ({ label, children }) => (
@@ -227,14 +226,16 @@ let SquigglePlayground: FC = ({ /> - - {importsAreValid ? "Valid" : "Invalid"} + <> + + {importsAreValid ? "Valid" : "Invalid"} + ) : (