Skip to content

Commit

Permalink
chore: merge latest components
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming committed Oct 19, 2023
1 parent 78e1e8e commit 6be51d4
Show file tree
Hide file tree
Showing 40 changed files with 540 additions and 548 deletions.
2 changes: 1 addition & 1 deletion undefined

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions packages/components/src/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,29 +116,28 @@ export const Alert: FC<AlertProps> = ({
</Text>
{action ? (
<XStack pt="$2" space="$4" alignItems="center">
<Button
size="small"
buttonVariant="secondary"
onPress={action.onPrimaryPress}
>
<Button.Text>{action.primary}</Button.Text>
<Button size="small" onPress={action.onPrimaryPress}>
{action.primary}
</Button>
{action.secondary ? (
<Button
size="small"
buttonVariant="tertiary"
variant="tertiary"
onPress={action.onSecondaryPress}
>
<Button.Text> {action.secondary}</Button.Text>
{action.secondary}
</Button>
) : null}
</XStack>
) : null}
</YStack>
{closable ? (
<IconButton size="small" buttonVariant="tertiary" onPress={onClose}>
<IconButton.Icon name="CrossedSmallSolid" />
</IconButton>
<IconButton
icon="CrossedSmallSolid"
size="small"
variant="tertiary"
onPress={onClose}
/>
) : null}
</AlertFrame>
);
Expand Down
17 changes: 0 additions & 17 deletions packages/components/src/Button/Button.stories.tsx

This file was deleted.

Loading

0 comments on commit 6be51d4

Please sign in to comment.