Skip to content

Commit b14ef4b

Browse files
committed
Remove Feecback component from i18n
1 parent a0df38d commit b14ef4b

File tree

2 files changed

+606
-617
lines changed

2 files changed

+606
-617
lines changed

src/error-boundary/fallback.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,14 @@ function DefaultHeaderContent({ i18nStrings }: { i18nStrings: ErrorBoundaryProps
5252
}
5353

5454
function DefaultDescriptionContent({
55-
i18nStrings: { descriptionText, components: { Feedback } = {} } = {},
55+
i18nStrings: { descriptionText } = {},
5656
}: {
5757
i18nStrings: ErrorBoundaryProps.I18nStrings;
5858
}) {
5959
const i18n = useInternalI18n('error-boundary');
6060

6161
// Dependencies for the intl-format function, where the pseudo-tags are declared as functions from parsed chunks.
62-
const formatArgs = Feedback
63-
? {
64-
hasFeedback: true,
65-
Feedback: (chunks: React.ReactNode[]) => (
66-
<span className={testUtilStyles['feedback-action']}>
67-
<Feedback>{chunks[0] ?? ''}</Feedback>
68-
</span>
69-
),
70-
}
71-
: { hasFeedback: false, Feedback: () => <></> };
62+
const formatArgs = { hasFeedback: false };
7263

7364
// This ensures that the description string provided via i18nStrings also supports the <Feedback> injection,
7465
// because the i18n() helper propagates the second argument as is, without applying intl-format to it.

0 commit comments

Comments
 (0)