fix(docs): fix build (#3571)
This commit is contained in:
8
docs/components/PlatformsList/PlatformsList.module.css
Normal file
8
docs/components/PlatformsList/PlatformsList.module.css
Normal file
@@ -0,0 +1,8 @@
|
||||
.paragraphStyle {
|
||||
margin-top: 10;
|
||||
}
|
||||
|
||||
.spanStyle {
|
||||
font-family: 'Orbitron';
|
||||
font-weight: 800;
|
||||
}
|
28
docs/components/PlatformsList/PlatformsList.tsx
Normal file
28
docs/components/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