summaryrefslogtreecommitdiffstats
path: root/webapp/routes/route_utils.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/routes/route_utils.jsx')
-rw-r--r--webapp/routes/route_utils.jsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/webapp/routes/route_utils.jsx b/webapp/routes/route_utils.jsx
index c5d889017..17fdc291d 100644
--- a/webapp/routes/route_utils.jsx
+++ b/webapp/routes/route_utils.jsx
@@ -1,8 +1,8 @@
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-import * as Utils from 'utils/utils.jsx';
import UserStore from 'stores/user_store.jsx';
+import {ErrorPageTypes} from 'utils/constants.jsx';
export function importComponentSuccess(callback) {
return (comp) => callback(null, comp.default);
@@ -13,10 +13,7 @@ export function createGetChildComponentsFunction(arrayOfComponents) {
}
export const notFoundParams = {
- title: Utils.localizeMessage('error.not_found.title', 'Page not found'),
- message: Utils.localizeMessage('error.not_found.message', 'The page you were trying to reach does not exist'),
- link: '/',
- linkmessage: Utils.localizeMessage('error.not_found.link_message', 'Back to Mattermost')
+ type: ErrorPageTypes.PAGE_NOT_FOUND
};
const mfaPaths = [