Skip to content

Commit 65153aa

Browse files
authored
docs(VersionTable): add ">=" for latest wcr version (#4406)
1 parent b5e39b3 commit 65153aa

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.storybook/components/VersionTable.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export function VersionTable() {
2424
</tr>
2525
</thead>
2626
<tbody>
27-
{Object.entries(versionInfo).map(([wcVersion, wcrVersion]) => {
27+
{Object.entries(versionInfo).map(([wcVersion, wcrVersion], index, arr) => {
28+
const lastEntry = index + 1 === arr.length;
2829
if (wcrVersion.startsWith('0')) {
2930
return null;
3031
}
@@ -43,7 +44,10 @@ export function VersionTable() {
4344

4445
return (
4546
<tr key={wcrVersion}>
46-
<td>{wcrVersions.join(', ')}</td>
47+
<td>
48+
{lastEntry ? '>= ' : ''}
49+
{wcrVersions.join(', ')}
50+
</td>
4751
<td>~{wcVersion}</td>
4852
</tr>
4953
);

docs/Welcome.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ npm install @ui5/webcomponents @ui5/webcomponents-react @ui5/webcomponents-fiori
7777

7878
<VersionTable />
7979

80+
<MessageStrip
81+
hideCloseButton
82+
children={
83+
<>
84+
Please note that if a <code>@ui5/webcomponents</code> or <code>@ui5/webcomponents-fiori</code> version doesn't
85+
start with a patch-version of 0 (e.g. <code>~1.10.3</code>), only the specified version is supported and the
86+
previous patch-versions will most likely not work with <code>@ui5/webcomponents-react</code>.
87+
</>
88+
}
89+
/>
90+
8091
In order to use `@ui5/webcomponents-react` you have to wrap your application's root component into the `ThemeProvider`.<br/>
8192
You will find this component most likely in `src/index.js`:
8293

@@ -113,7 +124,8 @@ UI5 Web Components and UI5 Web Components for React are both coming with the `sa
113124
children={
114125
<>
115126
UI5 Web Components for React uses the theme configuration of UI5 Web Components. Please also have a look at their{' '}
116-
<Link href="https://sap.github.io/ui5-webcomponents/playground/advanced/configuration/#theme">documentation</Link>.
127+
<Link href="https://sap.github.io/ui5-webcomponents/playground/advanced/configuration/#theme">documentation</Link>
128+
.
117129
</>
118130
}
119131
/>

0 commit comments

Comments
 (0)