Skip to content

Commit 6310bf2

Browse files
authored
feat: optimize code (ant-design#48072)
1 parent 1eb139a commit 6310bf2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/tag/__tests__/__snapshots__/demo-extend.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ exports[`renders components/tag/demo/borderlessLayout.tsx extend context correct
508508
exports[`renders components/tag/demo/checkable.tsx extend context correctly 1`] = `
509509
<div
510510
class="ant-flex ant-flex-wrap-wrap ant-flex-align-center"
511-
style="gap: 4px 0;"
511+
style="gap: 4px;"
512512
>
513513
<span>
514514
Categories:

components/tag/__tests__/__snapshots__/demo.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ exports[`renders components/tag/demo/borderlessLayout.tsx correctly 1`] = `
500500
exports[`renders components/tag/demo/checkable.tsx correctly 1`] = `
501501
<div
502502
class="ant-flex ant-flex-wrap-wrap ant-flex-align-center"
503-
style="gap:4px 0"
503+
style="gap:4px"
504504
>
505505
<span>
506506
Categories:

components/tag/demo/checkable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const App: React.FC = () => {
1414
};
1515

1616
return (
17-
<Flex gap="4px 0" wrap="wrap" align="center">
17+
<Flex gap={4} wrap="wrap" align="center">
1818
<span>Categories:</span>
1919
{tagsData.map<React.ReactNode>((tag) => (
2020
<Tag.CheckableTag

0 commit comments

Comments
 (0)