fix(docs): fix build (#3571)

This commit is contained in:
Krzysztof Moch
2024-03-08 13:04:27 +01:00
committed by GitHub
parent 962ca2d195
commit 4fc7d2788b
6 changed files with 4 additions and 4 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;