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:
committed by
GitHub
parent
46c8c498c4
commit
962ca2d195
@@ -0,0 +1,8 @@
|
||||
.paragraphStyle {
|
||||
margin-top: 10;
|
||||
}
|
||||
|
||||
.spanStyle {
|
||||
font-family: 'Orbitron';
|
||||
font-weight: 800;
|
||||
}
|
28
docs/pages/component/PlatformsList/PlatformsList.tsx
Normal file
28
docs/pages/component/PlatformsList/PlatformsList.tsx
Normal 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;
|
Reference in New Issue
Block a user