docs: update platforms in properties tab (#3562)

* docs: update platforms in properties tab

* docs: update platforms in drm, events and methods tab
This commit is contained in:
Dominik Danielewicz
2024-03-08 12:48:01 +01:00
committed by GitHub
parent 46c8c498c4
commit 962ca2d195
9 changed files with 1146 additions and 982 deletions

View File

@@ -0,0 +1,8 @@
.paragraphStyle {
margin-top: 10;
}
.spanStyle {
font-family: 'Orbitron';
font-weight: 800;
}

View File

@@ -0,0 +1,28 @@
import React from 'react';
import styles from './PlatformsList.module.css';
type Platform =
| 'Android'
| 'iOS'
| 'visionOS'
| 'tvOS'
| 'Windows UWP'
| 'Web'
| 'All';
interface Platforms {
types: Platform[];
}
function PlatformsList({types}: Platforms) {
return (
<p className={styles.paragraphStyle}>
{types.length === 1 && !types.includes('All')
? 'Platform:'
: 'Platforms:'}
<span className={styles.spanStyle}>{' ' + types.join(' | ')}</span>
</p>
);
}
export default PlatformsList;