Skip to content

Commit d9dfa30

Browse files
JeffreyDoylechaseflemingjribbink
authored
Adds a version check before showing filtered features (#165)
* 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>
1 parent 6858789 commit d9dfa30

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/ServiceCard.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,13 @@ export default function ServiceCard({
131131
)}
132132
</HStack>
133133
</Flex>
134-
<HStack mt={2}>
135-
{supportedFeatures.map((feature, index) => {
136-
return <Tag key={index} size="sm" colorScheme='gray'>{feature}</Tag>
137-
})}
138-
</HStack>
134+
{isFeaturesSupported && (
135+
<HStack mt={2}>
136+
{supportedFeatures.map((feature, index) => {
137+
return <Tag key={index} size="sm" colorScheme='gray'>{feature}</Tag>
138+
})}
139+
</HStack>
140+
)}
139141
</Stack>
140142
{hasWebsite && (
141143
<Box

0 commit comments

Comments
 (0)