Ran prettier

This commit is contained in:
Ozzie Gooen 2022-05-26 17:21:17 -04:00
parent f5474030ec
commit 30dc66db7c
4 changed files with 7 additions and 7 deletions

View File

@ -150,7 +150,7 @@ export const FunctionChart1Dist: React.FC<FunctionChartProps> = ({
fn, fn,
chartSettings, chartSettings,
environment, environment,
height height,
}: FunctionChartProps) => { }: FunctionChartProps) => {
let [mouseOverlay, setMouseOverlay] = React.useState(0); let [mouseOverlay, setMouseOverlay] = React.useState(0);
function handleHover(_name: string, value: unknown) { function handleHover(_name: string, value: unknown) {

View File

@ -129,7 +129,10 @@ export const FunctionChart1Number: React.FC<FunctionChartProps> = ({
[environment, fn] [environment, fn]
); );
let data = getFunctionImageMemoized.functionImage.map(({x, value}) => ({x, y:value})) let data = getFunctionImageMemoized.functionImage.map(({ x, value }) => ({
x,
y: value,
}));
return ( return (
<> <>
<SquiggleLineChart <SquiggleLineChart

View File

@ -4,10 +4,7 @@ import AceEditor from "react-ace";
import "ace-builds/src-noconflict/mode-json"; import "ace-builds/src-noconflict/mode-json";
import "ace-builds/src-noconflict/theme-github"; import "ace-builds/src-noconflict/theme-github";
import { import { jsImports, defaultImports } from "@quri/squiggle-lang";
jsImports,
defaultImports,
} from "@quri/squiggle-lang";
interface CodeEditorProps { interface CodeEditorProps {
value: string; value: string;

View File

@ -185,7 +185,7 @@ let SquigglePlayground: FC<PlaygroundProps> = ({
}; };
return ( return (
<ShowBox height={height}> <ShowBox height={height}>
<input type="checkbox" {...register("showSettingsPage")} /> <input type="checkbox" {...register("showSettingsPage")} />
<Row leftPercentage={vars.leftSizePercent || 50}> <Row leftPercentage={vars.leftSizePercent || 50}>
<Col> <Col>
{vars.showSettingsPage ? ( {vars.showSettingsPage ? (