Minor fixes to get build to pass

This commit is contained in:
Ozzie Gooen 2022-05-27 07:23:17 -04:00
parent afb7613bcc
commit 8482a51332

View File

@ -8,10 +8,7 @@ import styled from "styled-components";
import { useForm, useWatch } from "react-hook-form"; import { useForm, useWatch } from "react-hook-form";
import * as yup from "yup"; import * as yup from "yup";
import { yupResolver } from "@hookform/resolvers/yup"; import { yupResolver } from "@hookform/resolvers/yup";
import { import { defaultBindings, environment } from "@quri/squiggle-lang";
defaultBindings,
environment,
} from "@quri/squiggle-lang";
interface FieldFloatProps { interface FieldFloatProps {
label: string; label: string;
@ -132,7 +129,9 @@ const schema = yup
type InputProps = { type InputProps = {
label: string; label: string;
children: ReactElement;
}; };
const InputItem: React.FC<InputProps> = ({ label, children }) => ( const InputItem: React.FC<InputProps> = ({ label, children }) => (
<div> <div>
<label>{label}</label> <label>{label}</label>
@ -227,14 +226,16 @@ let SquigglePlayground: FC<PlaygroundProps> = ({
/> />
</InputItem> </InputItem>
<InputItem label="Json Editor for imports"> <InputItem label="Json Editor for imports">
<JsonEditor <>
value={importString} <JsonEditor
onChange={getChangeJson} value={importString}
oneLine={false} onChange={getChangeJson}
showGutter={true} oneLine={false}
height={100} showGutter={true}
/> height={100}
{importsAreValid ? "Valid" : "Invalid"} />
{importsAreValid ? "Valid" : "Invalid"}
</>
</InputItem> </InputItem>
</> </>
) : ( ) : (