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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user