Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea9cc35

Browse files
committed
remove unneeded PAGE_POSITION_SET
1 parent693b36f commitea9cc35

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

‎src/actions/_types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const COMPLETE_TUTORIAL = 'COMPLETE_TUTORIAL';
55
exportconstDEVTOOLS_TOGGLE='DEVTOOLS_TOGGLE';
66
exportconstHINT_POSITION_SET='HINT_POSITION_SET';
77
exportconstPAGE_SET='PAGE_SET';
8-
exportconstPAGE_POSITION_SET='POSITION_SET';
98
exportconstPROGRESS_LOAD='PROGRESS_LOAD';
109
exportconstPROGRESS_PAGE_POSITION_LOAD='PROGRESS_PAGE_POSITION_LOAD';
1110
exportconstQUIT='QUIT';

‎src/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export {
55
progressPagePositionLoad
66
}from'./progress';
77
export{hintPositionSet}from'./hint';
8-
export{pageSet,pageNext,pagePositionSet}from'./page';
8+
export{pageSet,pageNext}from'./page';
99
export{routeSet}from'./route';
1010
export{setupVerify,setupPackage}from'./setup';
1111
export{

‎src/actions/page.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,3 @@ export function pageSet(pagePosition = 0): ReduxThunk.ThunkInterface {
3030
dispatch(hintPositionSet(0));
3131
};
3232
}
33-
34-
exportfunctionpagePositionSet(pagePosition:CR.PagePosition):Action{
35-
return{type:PAGE_POSITION_SET,payload:{ pagePosition}};
36-
}

‎src/reducers/page-position/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default function pagePositionReducer(
1212
constfirstFail=pages.indexOf(false);
1313
returnfirstFail<0 ?pages.length-1 :firstFail;
1414

15-
casePAGE_SET:
1615
casePAGE_POSITION_SET:
1716
returnaction.payload.pagePosition;
1817

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp