Skip to content

Commit a401366

Browse files
authored
docs: remove unsupported warning (#6441)
1 parent 7e8e805 commit a401366

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.storybook/components/ProjectTemplate.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ interface ProjectTemplatePropTypes {
2929
isTemplate?: boolean;
3030
stackBlitzHref?: string;
3131
showUnsupportedMessage?: boolean;
32-
showNote?: boolean;
32+
/**
33+
* Either use text or text components.
34+
*/
35+
note?: ReactNode;
3336
}
3437

3538
addCustomCSSWithScoping(
@@ -50,7 +53,7 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
5053
isTemplate,
5154
stackBlitzHref,
5255
showUnsupportedMessage,
53-
showNote
56+
note
5457
} = props;
5558
const [popoverOpen, setPopoverOpen] = useState(false);
5659
const linkRef = useRef(null);
@@ -144,18 +147,12 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
144147
</Link>
145148
</>
146149
)}
147-
{showNote && (
150+
{!!note && (
148151
<>
149152
<br />
150153
<span>
151154
<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}
159156
</span>
160157
</>
161158
)}

docs/ProjectTemplates.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ A curated list of minimal project templates and examples to get started using UI
2727
stackBlitzHref="https://stackblitz.com/github/SAP/ui5-webcomponents-react/tree/main/templates/nextjs-app"
2828
isTypeScript
2929
isTemplate
30-
showNote
3130
/>
3231
<ProjectTemplate
3332
title={'Next.js'}
@@ -37,7 +36,6 @@ A curated list of minimal project templates and examples to get started using UI
3736
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/templates/nextjs-pages'}
3837
isTypeScript
3938
isTemplate
40-
showUnsupportedMessage
4139
/>
4240
<ProjectTemplate
4341
title={'Vite.js'}
@@ -63,7 +61,6 @@ A curated list of minimal project templates and examples to get started using UI
6361
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-app'}
6462
stackBlitzHref="https://stackblitz.com/github/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-app"
6563
isTypeScript
66-
showNote
6764
>
6865
<ul>
6966
<li>
@@ -81,7 +78,6 @@ A curated list of minimal project templates and examples to get started using UI
8178
logoAttribution={'Next.js Logo. Original Source: https://vercel.com/design/brands#next-js'}
8279
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-pages'}
8380
isTypeScript
84-
showUnsupportedMessage
8581
>
8682
<ul>
8783
<li>
@@ -120,7 +116,6 @@ A curated list of minimal project templates and examples to get started using UI
120116
logo={RemixLogo}
121117
logoAttribution={'Remix.run Logo. Original Source: https://remix.run'}
122118
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/remix-ts'}
123-
showUnsupportedMessage
124119
isTypeScript
125120
>
126121
<ul>

0 commit comments

Comments
 (0)