Skip to content

Commit

Permalink
Adds a version check before showing filtered features (#165)
Browse files Browse the repository at this point in the history
* Supported suggested features by apps

* Update helpers/constants.js

Co-authored-by: Jordan Ribbink <jribbink@users.noreply.github.com>

* Update components/ServiceCard.tsx

Co-authored-by: Jordan Ribbink <jribbink@users.noreply.github.com>

* Remove mobile for now

* Cleanup

* Add features filtering

* bump version

* Fix key warning

* Revert versions

* Generate new snapshots

* Adds account-linking feature and removes others (#164)

* Hide features unless version features are enabled

* Hide features unless version features are enabled

---------

Co-authored-by: Chase Fleming <1666730+chasefleming@users.noreply.github.com>
Co-authored-by: Chase Fleming <chasefleming@users.noreply.github.com>
Co-authored-by: Jordan Ribbink <jribbink@users.noreply.github.com>
  • Loading branch information
4 people authored Jan 8, 2024
1 parent 6858789 commit d9dfa30
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions components/ServiceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@ export default function ServiceCard({
)}
</HStack>
</Flex>
<HStack mt={2}>
{supportedFeatures.map((feature, index) => {
return <Tag key={index} size="sm" colorScheme='gray'>{feature}</Tag>
})}
</HStack>
{isFeaturesSupported && (
<HStack mt={2}>
{supportedFeatures.map((feature, index) => {
return <Tag key={index} size="sm" colorScheme='gray'>{feature}</Tag>
})}
</HStack>
)}
</Stack>
{hasWebsite && (
<Box
Expand Down

1 comment on commit d9dfa30

@vercel
Copy link

@vercel vercel bot commented on d9dfa30 Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.