Skip to content

Commit

Permalink
Fixing error for unkeyed list items
Browse files Browse the repository at this point in the history
  • Loading branch information
TimRoe committed Jun 4, 2024
1 parent 2b4a491 commit 43ea38f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const buildIconGallery = () => {

for (const icon of iconMapArray) {
iconItems.push(
<IconItem name={icon}>
<IconItem name={icon} key={icon}>
{/* @ts-ignore - Typed as string, but derived from IconMap names */}
<Icon name={icon} />
</IconItem>,
Expand Down
9 changes: 2 additions & 7 deletions packages/components/src/utils/storybook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,11 @@ export const DocLink = ({ name, docUrl }: DocProps) => {
return (
<View style={{ marginVertical: 10 }}>
<Text
style={{
color: 'blue',
textDecorationLine: 'underline',
lineHeight: 20,
}}
style={{ color: 'blue', textDecorationLine: 'underline', lineHeight: 20 }}
onPress={() => {
Linking.openURL(docUrl)
}}>
View guidance for the {name} component on the VA Mobile Documentation
Site
View guidance for the {name} component on the VA Mobile Documentation Site
</Text>
</View>
)
Expand Down

0 comments on commit 43ea38f

Please sign in to comment.