Minor changes

This commit is contained in:
Ozzie Gooen 2020-03-04 10:19:37 +00:00
parent 25eea46f0e
commit f0f76ff96e
2 changed files with 4 additions and 6 deletions

View File

@ -245,7 +245,7 @@ let make = (~distPlus: DistTypes.distPlus) => {
<button
className=button
onClick={_ => dispatch(CHANGE_LOG(index))}>
{(state.log ? "log" : "linear") |> ReasonReact.string}
{(config.log ? "x-log" : "x-linear") |> ReasonReact.string}
</button>
<button
className=button
@ -259,18 +259,18 @@ let make = (~distPlus: DistTypes.distPlus) => {
<button
className=button
onClick={_ => dispatch(HEIGHT_INCREMENT(index))}>
{"Expand" |> ReasonReact.string}
{"expand" |> ReasonReact.string}
</button>
<button
className=button
onClick={_ => dispatch(HEIGHT_DECREMENT(index))}>
{"Compress" |> ReasonReact.string}
{"shrink" |> ReasonReact.string}
</button>
{index != 0
? <button
className=button
onClick={_ => dispatch(REMOVE_DIST(index))}>
{"Remove" |> ReasonReact.string}
{"remove" |> ReasonReact.string}
</button>
: ReasonReact.null}
</div>

View File

@ -5,7 +5,6 @@ type chartConfig = {
};
type state = {
log: bool,
showStats: bool,
showParams: bool,
distributions: list(chartConfig),
@ -87,7 +86,6 @@ let reducer = (state: state, action: action) =>
};
let init = {
log: false,
showStats: false,
showParams: false,
distributions: [