From 032a996783ed51167f0040973ba90222ad644d79 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sat, 30 May 2020 15:37:47 +0200 Subject: [PATCH] error-decoder -> production-error less jargon --- docs/pages/{error-decoder => production-error}/[code].js | 6 +++--- docs/src/pages.js | 6 +++--- .../{error-decoder => production-error}/ErrorDecoder.js | 4 ++-- .../src/pages/{error-decoder => production-error}/[code].md | 2 +- packages/material-ui-utils/src/formatMuiErrorMessage.js | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) rename docs/pages/{error-decoder => production-error}/[code].js (73%) rename docs/src/pages/{error-decoder => production-error}/ErrorDecoder.js (97%) rename docs/src/pages/{error-decoder => production-error}/[code].md (80%) diff --git a/docs/pages/error-decoder/[code].js b/docs/pages/production-error/[code].js similarity index 73% rename from docs/pages/error-decoder/[code].js rename to docs/pages/production-error/[code].js index be08fdc1578563..41af0bfeb96e51 100644 --- a/docs/pages/error-decoder/[code].js +++ b/docs/pages/production-error/[code].js @@ -2,10 +2,10 @@ import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; -const pageFilename = 'error-decoder/[code]'; -const requireDemo = require.context('docs/src/pages/error-decoder', false, /\.js$/); +const pageFilename = 'production-error/[code]'; +const requireDemo = require.context('docs/src/pages/production-error', false, /\.js$/); const requireRaw = require.context( - '!raw-loader!../../src/pages/error-decoder', + '!raw-loader!../../src/pages/production-error', false, /\.(js|md)$/, ); diff --git a/docs/src/pages.js b/docs/src/pages.js index 754eccf3351280..1b33705a77fd75 100644 --- a/docs/src/pages.js +++ b/docs/src/pages.js @@ -130,9 +130,9 @@ const pages = [ }, { title: 'Component API', ...findPages[0] }, { - title: 'Error Decoder', - pathname: '/error-decoder', - children: [{ pathname: '/error-decoder/[code]' }], + title: 'Production Error', + pathname: '/production-error', + children: [{ pathname: '/production-error/[code]' }], }, { pathname: '/styles', diff --git a/docs/src/pages/error-decoder/ErrorDecoder.js b/docs/src/pages/production-error/ErrorDecoder.js similarity index 97% rename from docs/src/pages/error-decoder/ErrorDecoder.js rename to docs/src/pages/production-error/ErrorDecoder.js index f223c47d7cb9fb..3f1c7634156f04 100644 --- a/docs/src/pages/error-decoder/ErrorDecoder.js +++ b/docs/src/pages/production-error/ErrorDecoder.js @@ -95,8 +95,8 @@ export default function ErrorDecoder() { if (data.state === 'rejected') { return ( - Seems like we're having some issues loading the original message. Try reloading the page. If the error - persists please report this isse on our{' '} + Seems like we're having some issues loading the original message. Try reloading the + page. If the error persists please report this isse on our{' '}