Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Display "space[index+1]" for spacing story (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofreyssinet-ledger authored Nov 18, 2021
1 parent 71b0c15 commit fe64e10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ const SpacingStory = () => {
contentContainerStyle={{ alignItems: "center", paddingVertical: 20 }}
style={{ width: "100%" }}
>
{space.map((value) => (
{space.map((value, index) => (
<Flex mb={4} width="90%" key={value}>
<Text variant="subtitle" color={theme.colors.palette.neutral.c100}>
<Text variant="small" color={theme.colors.palette.neutral.c100}>
{value}
<Text ml={4} variant="small" color="palette.neutral.c70">
space[{index + 1}]
</Text>
</Text>
<View
style={{
Expand Down
8 changes: 7 additions & 1 deletion packages/react/src/styles/Spacing.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ export const Spacing = (): JSX.Element => {
<Flex flexDirection="column" rowGap="24px">
{space.map((value, index) => (
<SpaceRow key={value} onClick={() => handleClick(index)}>
<Text variant="subtitle" style={{ minWidth: "5ch" }}>{`${value}px`}</Text>
<Text variant="small" style={{ minWidth: "5ch" }}>
{`${value}px`}
<br />
<Text variant="small" color="palette.neutral.c70">
space[{index + 1}]
</Text>
</Text>
<Flex
flexGrow={1}
style={{
Expand Down

2 comments on commit fe64e10

@vercel
Copy link

@vercel vercel bot commented on fe64e10 Nov 18, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ledger-live-ui-react – ./packages/react

ledger-live-ui-react-git-main-ledgerhq.vercel.app
ledger-live-ui-react.vercel.app
ledger-live-ui-react-ledgerhq.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fe64e10 Nov 18, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

ledger-live-ui-native – ./packages/native

ledger-live-ui-native-ledgerhq.vercel.app
ledger-live-ui-native-git-main-ledgerhq.vercel.app
ledger-live-ui-native.vercel.app

Please sign in to comment.