Skip to content

Commit

Permalink
chore(suite-native): Add PriceChangeBadge examples to Demo screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jbazant authored and vytick committed Jan 31, 2025
1 parent 4ea408e commit 01938fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions suite-native/module-dev-utils/src/screens/DemoScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
Input,
InputWrapper,
NumPadButton,
PriceChangeBadge,
Radio,
SearchInput,
Switch,
Expand Down Expand Up @@ -114,6 +115,15 @@ export const DemoScreen = () => {
<Badge key="disabled" label="disabled" icon="question" isDisabled />
</HStack>
</VStack>
<VStack>
<Text variant="titleSmall">PriceChangeBadge:</Text>
<HStack justifyContent="center" style={applyStyle(flexWrapStyle)}>
<PriceChangeBadge valuePercentageChange={0.123} />
<PriceChangeBadge valuePercentageChange={-1.23} />
<PriceChangeBadge valuePercentageChange={0} />
<PriceChangeBadge valuePercentageChange={null} />
</HStack>
</VStack>
<Divider />
<VStack>
<Text variant="titleSmall">Text:</Text>
Expand Down

0 comments on commit 01938fa

Please sign in to comment.