File tree 3 files changed +3
-3
lines changed
modals/screenshot-accepter
test/unit/lib/static/components/modals/screenshot-accepter
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class ControlButtons extends Component {
75
75
size = 'm'
76
76
label = "Diff mode"
77
77
value = { view . diffMode }
78
- handler = { actions . changeDiffMode }
78
+ handler = { diffModeId => actions . setDiffMode ( { diffModeId } ) }
79
79
options = { Object . values ( DiffModes ) . map ( ( dm ) => {
80
80
return { value : dm . id , content : dm . title } ;
81
81
} ) }
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export default class ScreenshotAccepterHeader extends Component {
193
193
size = "m"
194
194
label = "Diff mode"
195
195
value = { view . diffMode }
196
- handler = { actions . changeDiffMode }
196
+ handler = { diffModeId => actions . setDiffMode ( { diffModeId } ) }
197
197
options = { Object . values ( DiffModes ) . map ( ( dm ) => {
198
198
return { value : dm . id , content : dm . title } ;
199
199
} ) }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ describe('<ScreenshotAccepterHeader/>', () => {
18
18
19
19
const DEFAULT_PROPS = {
20
20
view : { diffMode : DiffModes . THREE_UP_SCALED } ,
21
- actions : { changeDiffMode : sinon . stub ( ) . returns ( { type : 'some-type' } ) } ,
21
+ actions : { setDiffMode : sinon . stub ( ) . returns ( { type : 'some-type' } ) } ,
22
22
totalImages : 2 ,
23
23
acceptedImages : 0 ,
24
24
images : [ {
You can’t perform that action at this time.
0 commit comments