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

View File

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