Open guoyunhe opened 2 weeks ago
Run & review this pull request in StackBlitz Codeflow.
🎯 Target branch: next (29edffc48490de0e80307772dfbf21f68c4bf7b5) 📖 View Full Report ↗︎ 📊 Summary: 🔄
1
changed
Expected (Branch next) | Actual (Current PR) | Diff |
---|---|---|
![]() |
![]() |
![]() |
[!IMPORTANT] There are 1 diffs found in this PR: 🔄
1
changed. Please check all items:
- [ ] Visual diff is acceptable
This pull request refactors the Badge component by splitting it into separate files to improve maintainability and optimize bundle size. The changes involve moving the Badge component logic into a new file and updating the index file to import the refactored component.
Files | Summary |
---|---|
components/badge/Badge.tsx | New file created for the Badge component, containing its logic and styles. |
components/badge/index.tsx | Updated to import the refactored Badge component and export its types. |
- [farm-normal](https://pkg.pr.new/template/d017297c-1f72-4a78-9bf2-3439a4a1158b) - [rsbuild-normal](https://pkg.pr.new/template/b89be0a0-6d80-4222-9692-caef7d784ad4) - [umi-normal](https://pkg.pr.new/template/e0c1f748-681f-405d-9023-b607399cf189) - [vite-normal](https://pkg.pr.new/template/feddc14f-7ae0-4916-a338-9e1d4328c210) - [vite-practice](https://pkg.pr.new/template/c2084a88-1122-4763-8da1-5716a6bf933f) - [with-nextjs-app-router-inline-style](https://pkg.pr.new/template/00feeb1f-045f-48da-a792-a27e752a1128) - [with-nextjs-extract-style](https://pkg.pr.new/template/6578d10f-b38b-4a4e-a60d-1a47ff9ab99e) - [with-nextjs-generate-css-on-demand](https://pkg.pr.new/template/a4f49958-ff2f-4deb-ae2c-91f9aa9384b6) - [with-nextjs-inline-style](https://pkg.pr.new/template/bf621e1f-ca75-4960-8e42-f899a96268fd)
npm i https://pkg.pr.new/ant-design/ant-design/antd@52607
commit: aa4e308
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
29edffc
) to head (aa4e308
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Changes will increase total bundle size by 8 bytes (0.0%) :arrow_up:. This is within the configured threshold :white_check_mark:
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
Badge 组件拆分成单独文件,便于维护。
📝 Change Log