Skip to content

Commit

Permalink
Remove ClearButton and replace with GreenButton
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Apr 15, 2017
1 parent 1c79f2b commit fa757ef
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 51 deletions.
2 changes: 1 addition & 1 deletion src/components/Buttons.re
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Buttons = {
let render { props: { dispatch } } =>
<div>
<ButtonGroup>
<ClearButton dispatch />
<GreenButton dispatch action=Clear />
<GreenButton dispatch action=PosNeg />
<OperationButton dispatch action=Divide />
</ButtonGroup>
Expand Down
18 changes: 0 additions & 18 deletions src/components/ClearButton.re

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/__tests__/ClearButton_test.re

This file was deleted.

8 changes: 6 additions & 2 deletions src/components/__tests__/__snapshots__/buttons_test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ exports[`Buttons renders 1`] = `
reasonProps={
Array [
Array [
<ClearButton
<GreenButton
reasonProps={
Array [
1,
"",
[Function],
]
}
Expand Down Expand Up @@ -40,9 +42,11 @@ exports[`Buttons renders 1`] = `
]
}
>
<ClearButton
<GreenButton
reasonProps={
Array [
1,
"",
[Function],
]
}
Expand Down
15 changes: 0 additions & 15 deletions src/components/__tests__/__snapshots__/clearButton_test.js.snap

This file was deleted.

2 changes: 1 addition & 1 deletion src/reductive/action.re
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let toInfix action =>
let toText action =>
switch action {
| Add => "+"
| Clear => "Clear"
| Clear => "C"
| Divide => "&divide;"
| Equals => "="
| Multiply => "&times;"
Expand Down

0 comments on commit fa757ef

Please sign in to comment.