Merged in chore/add-formatjs-linting-to-booking-flow (pull request #2761)

chore: Add formatjs linting to booking-flow

* Add formatjs linting to booking-flow

* Fix lock file


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-09-04 13:52:56 +00:00
parent 55e25d6c75
commit 711589ff5e
11 changed files with 34 additions and 7 deletions

View File

@@ -34,8 +34,10 @@ export class ErrorBoundary extends React.Component<
return (
<>
{hasFallback && this.props.fallback}
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
{!hasFallback && <h2>Something went wrong.</h2>}
{process.env.NODE_ENV === "development" && (
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
<button onClick={() => this.setState({ hasError: false })}>
Reset
</button>