@@ -13,7 +13,8 @@ import {
13
13
ThemeProvider
14
14
} from '@ui5/webcomponents-react' ;
15
15
import { clsx } from 'clsx' ;
16
- import { ReactNode , useRef , useState } from 'react' ;
16
+ import type { ReactNode } from 'react' ;
17
+ import { useRef , useState } from 'react' ;
17
18
import { addCustomCSSWithScoping } from '../../packages/main/src/internal/addCustomCSSWithScoping' ;
18
19
import classes from './ProjectTemplate.module.css' ;
19
20
@@ -84,9 +85,9 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
84
85
} }
85
86
>
86
87
< Text >
87
- Currently, the < code > BarcodeScannerDialog</ code > web component isn' t compatible with SSR environments.
88
- For the Next.js Pages Router and Remix, this bug crashes the entire build process, even if the component
89
- isn' t imported.
88
+ Currently, the < code > BarcodeScannerDialog</ code > web component isn' t compatible with SSR
89
+ environments. For the Next.js Pages Router and Remix, this bug crashes the entire build process, even if
90
+ the component isn' t imported.
90
91
< br />
91
92
This is < b > not</ b > the case for the Next.js App Router; there, the build only crashes if the component
92
93
is used.
@@ -129,19 +130,16 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
129
130
>
130
131
< div className = { classes . cardContent } >
131
132
{ deprecationNotice && (
132
- < MessageStrip
133
- hideCloseButton
134
- design = { MessageStripDesign . Critical }
135
- children = { deprecationNotice }
136
- className = { classes . deprecationNotice }
137
- />
133
+ < MessageStrip hideCloseButton design = { MessageStripDesign . Critical } className = { classes . deprecationNotice } >
134
+ { deprecationNotice }
135
+ </ MessageStrip >
138
136
) }
139
137
< Link design = { LinkDesign . Emphasized } href = { href } >
140
- View Example
138
+ View{ isTemplate ? ' Template' : ' Example' }
141
139
</ Link >
142
140
{ stackBlitzHref && (
143
141
< >
144
- |
142
+ < span className = { classes . verticalLine } > | </ span >
145
143
< Link design = { LinkDesign . Emphasized } href = { stackBlitzHref } >
146
144
View in StackBlitz
147
145
</ Link >
0 commit comments