From 73f78becd02ba7fdbe45f947a59b58dd83465ba2 Mon Sep 17 00:00:00 2001 From: David Mason Date: Fri, 22 Sep 2017 10:44:15 +1000 Subject: [PATCH] refactor(actions): make CLAMP_PAGE an FSA --- .../frontend/app/editor/actions/controls-header-actions.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/zanata-frontend/src/frontend/app/editor/actions/controls-header-actions.js b/server/zanata-frontend/src/frontend/app/editor/actions/controls-header-actions.js index 776593fc13d..2780b6fc226 100644 --- a/server/zanata-frontend/src/frontend/app/editor/actions/controls-header-actions.js +++ b/server/zanata-frontend/src/frontend/app/editor/actions/controls-header-actions.js @@ -1,13 +1,12 @@ import { getLocation, getPageIndex, getMaxPageIndex } from '../selectors' import { replaceRouteQuery } from '../utils/RoutingHelpers' +import { createAction } from 'redux-actions' /* Adjust the page number so it is in the valid range. * Dispatch after changing the filter. */ -export const CLAMP_PAGE = Symbol('CLAMP_PAGE') -export function clampPage () { - return { type: CLAMP_PAGE } -} +export const CLAMP_PAGE = 'CLAMP_PAGE' +export const clampPage = createAction(CLAMP_PAGE) export const UPDATE_PAGE = Symbol('UPDATE_PAGE')