File tree 2 files changed +7
-15
lines changed
2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ interface ProjectTemplatePropTypes {
29
29
isTemplate ?: boolean ;
30
30
stackBlitzHref ?: string ;
31
31
showUnsupportedMessage ?: boolean ;
32
- showNote ?: boolean ;
32
+ /**
33
+ * Either use text or text components.
34
+ */
35
+ note ?: ReactNode ;
33
36
}
34
37
35
38
addCustomCSSWithScoping (
@@ -50,7 +53,7 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
50
53
isTemplate,
51
54
stackBlitzHref,
52
55
showUnsupportedMessage,
53
- showNote
56
+ note
54
57
} = props ;
55
58
const [ popoverOpen , setPopoverOpen ] = useState ( false ) ;
56
59
const linkRef = useRef ( null ) ;
@@ -144,18 +147,12 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
144
147
</ Link >
145
148
</ >
146
149
) }
147
- { showNote && (
150
+ { ! ! note && (
148
151
< >
149
152
< br />
150
153
< span >
151
154
< Label showColon > Note</ Label >
152
- < Text >
153
- The < code > BarcodeScannerDialog</ code > component is currently{ ' ' }
154
- < Link href = "https://github.com/SAP/ui5-webcomponents/issues/9771" target = "_blank" >
155
- not supported
156
- </ Link >
157
- .
158
- </ Text >
155
+ { note }
159
156
</ span >
160
157
</ >
161
158
) }
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ A curated list of minimal project templates and examples to get started using UI
27
27
stackBlitzHref = " https://stackblitz.com/github/SAP/ui5-webcomponents-react/tree/main/templates/nextjs-app"
28
28
isTypeScript
29
29
isTemplate
30
- showNote
31
30
/>
32
31
<ProjectTemplate
33
32
title = { ' Next.js' }
@@ -37,7 +36,6 @@ A curated list of minimal project templates and examples to get started using UI
37
36
href = { ' https://github.com/SAP/ui5-webcomponents-react/tree/main/templates/nextjs-pages' }
38
37
isTypeScript
39
38
isTemplate
40
- showUnsupportedMessage
41
39
/>
42
40
<ProjectTemplate
43
41
title = { ' Vite.js' }
@@ -63,7 +61,6 @@ A curated list of minimal project templates and examples to get started using UI
63
61
href = { ' https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-app' }
64
62
stackBlitzHref = " https://stackblitz.com/github/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-app"
65
63
isTypeScript
66
- showNote
67
64
>
68
65
<ul >
69
66
<li >
@@ -81,7 +78,6 @@ A curated list of minimal project templates and examples to get started using UI
81
78
logoAttribution = { ' Next.js Logo. Original Source: https://vercel.com/design/brands#next-js' }
82
79
href = { ' https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-pages' }
83
80
isTypeScript
84
- showUnsupportedMessage
85
81
>
86
82
<ul >
87
83
<li >
@@ -120,7 +116,6 @@ A curated list of minimal project templates and examples to get started using UI
120
116
logo = { RemixLogo }
121
117
logoAttribution = { ' Remix.run Logo. Original Source: https://remix.run' }
122
118
href = { ' https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/remix-ts' }
123
- showUnsupportedMessage
124
119
isTypeScript
125
120
>
126
121
<ul >
You can’t perform that action at this time.
0 commit comments