feat: optimize code (#48072)

This commit is contained in:
kiner-tang 2024-03-25 19:22:04 +08:00 committed by GitHub
parent 1eb139aa8d
commit 6310bf2840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -508,7 +508,7 @@ exports[`renders components/tag/demo/borderlessLayout.tsx extend context correct
exports[`renders components/tag/demo/checkable.tsx extend context correctly 1`] = `
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-align-center"
style="gap: 4px 0;"
style="gap: 4px;"
>
<span>
Categories:

View File

@ -500,7 +500,7 @@ exports[`renders components/tag/demo/borderlessLayout.tsx correctly 1`] = `
exports[`renders components/tag/demo/checkable.tsx correctly 1`] = `
<div
class="ant-flex ant-flex-wrap-wrap ant-flex-align-center"
style="gap:4px 0"
style="gap:4px"
>
<span>
Categories:

View File

@ -14,7 +14,7 @@ const App: React.FC = () => {
};
return (
<Flex gap="4px 0" wrap="wrap" align="center">
<Flex gap={4} wrap="wrap" align="center">
<span>Categories:</span>
{tagsData.map<React.ReactNode>((tag) => (
<Tag.CheckableTag