From 9fdc756cd8f089c907902a16447f42a5e727554d Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Mon, 2 Dec 2024 16:52:59 -0600 Subject: [PATCH] Disable no-unescaped-entities --- .eslintrc.js | 2 +- src/components/BodyPortal.spec.tsx | 2 +- src/components/Error.tsx | 2 +- src/components/ErrorBoundary.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b9c5e9dc6..3ab3f77d6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,6 +32,6 @@ module.exports = { "react/prop-types": "off", "react/jsx-no-target-blank": "off", "react/display-name": "off", - "react/no-unescaped-entities": "warn", + "react/no-unescaped-entities": "off", } } diff --git a/src/components/BodyPortal.spec.tsx b/src/components/BodyPortal.spec.tsx index 92aa1b820..62e8fd4e5 100644 --- a/src/components/BodyPortal.spec.tsx +++ b/src/components/BodyPortal.spec.tsx @@ -239,7 +239,7 @@ describe('BodyPortal', () => { render( - Now you're thinking with portals + Now you're thinking with portals , { container: root } diff --git a/src/components/Error.tsx b/src/components/Error.tsx index fae9520d9..a99cfa1a6 100644 --- a/src/components/Error.tsx +++ b/src/components/Error.tsx @@ -39,7 +39,7 @@ export const Error = ({ heading, children, ...props }: ErrorPropTypes) => { return {heading ?? `Uh-oh, there's been a glitch`} {children ?? <> - We're not quite sure what went wrong. Restart your browser. If this doesn't solve + We're not quite sure what went wrong. Restart your browser. If this doesn't solve the problem, visit our Support Center. } {context.error?.eventId || lastEventId} diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index 867d221d2..c5746e1d0 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -12,7 +12,7 @@ const Error = ({ children, ...props }: React.PropsWithChildren) const defaultErrorFallbacks = { 'generic': , 'SessionExpiredError': - Please refresh your browser and try again. If this doesn't solve the problem, visit our Support Center. + Please refresh your browser and try again. If this doesn't solve the problem, visit our Support Center. , 'UnauthorizedError': You may not have the required permissions or may have been logged out. Try refreshing the page or restarting your browser.