File tree Expand file tree Collapse file tree 2 files changed +606
-617
lines changed
Expand file tree Collapse file tree 2 files changed +606
-617
lines changed Original file line number Diff line number Diff line change @@ -52,23 +52,14 @@ function DefaultHeaderContent({ i18nStrings }: { i18nStrings: ErrorBoundaryProps
5252}
5353
5454function 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.
You can’t perform that action at this time.
0 commit comments