Skip to content

Commit

Permalink
Merge pull request #103 from GetLuko/hc/fix/button-bar-skeleton
Browse files Browse the repository at this point in the history
feat: Spacing skeleton fix
  • Loading branch information
hcourthias authored Aug 17, 2023
2 parents c8364d5 + bf84226 commit d910c70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/streamline/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getluko/streamline",
"version": "0.0.28",
"version": "0.0.29",
"author": "luko",
"description": "Luko Design System using react-native for iOS and Android",
"main": "dist/packages/streamline/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/streamline/src/components/button-bar/button-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export const ButtonBar = ({ buttons, isSkeleton = false, testID }: Props) => {
{buttonMenu.map((button, index) => (
<Box
key={button.text}
marginRight={buttons.length - 1 > index ? 'xs' : undefined}
marginRight={
buttons.length - 1 > index || isSkeleton ? 'xs' : undefined
}
>
<Button
testID={testID ? `${testID}_button_${index}` : undefined}
Expand Down

0 comments on commit d910c70

Please sign in to comment.