Skip to content

Commit

Permalink
demo: Update demo with Space.Compact wrap (#48067)
Browse files Browse the repository at this point in the history
* demo: App demo update

* test: Update test snapshots
  • Loading branch information
Meetacoo committed Mar 25, 2024
1 parent 0177a70 commit dc9e457
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`renders components/app/demo/basic.tsx extend context correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap: wrap;"
>
<div
class="ant-space-item"
Expand Down Expand Up @@ -55,6 +56,7 @@ exports[`renders components/app/demo/config.tsx extend context correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap: wrap;"
>
<div
class="ant-space-item"
Expand Down
2 changes: 2 additions & 0 deletions components/app/__tests__/__snapshots__/demo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`renders components/app/demo/basic.tsx correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap:wrap"
>
<div
class="ant-space-item"
Expand Down Expand Up @@ -53,6 +54,7 @@ exports[`renders components/app/demo/config.tsx correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap:wrap"
>
<div
class="ant-space-item"
Expand Down
2 changes: 1 addition & 1 deletion components/app/demo/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const MyPage = () => {
};

return (
<Space>
<Space wrap>
<Button type="primary" onClick={showMessage}>
Open message
</Button>
Expand Down
2 changes: 1 addition & 1 deletion components/app/demo/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MyPage = () => {
};

return (
<Space>
<Space wrap>
<Button type="primary" onClick={showMessage}>
Message for only one
</Button>
Expand Down

0 comments on commit dc9e457

Please sign in to comment.