Skip to content

Commit b8c72e2

Browse files
authored
[docs] Make platforms optional parameter (#3992)
## Description This PR does 2 things: - Removes old `HeaderWithBadge` component, which was replaced by `HeaderWithBadges` - Makes `platforms` prop optional, so it is possible to add only version badge. > [!NOTE] > `HeaderWithBadges` already treats `platforms` as optional with [optional chaining](https://github.com/software-mansion/react-native-gesture-handler/blob/554e66821e382c34c9187cc633a4f55f57c8d533/packages/docs-gesture-handler/src/components/HeaderWithBadges/index.tsx#L79). ## Test plan Read docs 🤓
1 parent 554e668 commit b8c72e2

2 files changed

Lines changed: 1 addition & 92 deletions

File tree

  • packages/docs-gesture-handler/src/components

packages/docs-gesture-handler/src/components/HeaderWithBadge/index.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

packages/docs-gesture-handler/src/components/HeaderWithBadges/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styles from './styles.module.css';
55
import clsx from 'clsx';
66

77
type HeaderWithBadgesProps = {
8-
platforms: string[];
8+
platforms?: string[];
99
version?: string;
1010
children?: React.ReactNode;
1111
};

0 commit comments

Comments
 (0)