Skip to content

Conversation

lwnmengjing
Copy link
Member

Remove style files and reconstruct component structure

Description

Checklist

  • the pull request title describes what this PR does (not a vague title like Update index.md)
  • the pull request targets the default branch of the repository (main)
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refactors the account center component by removing custom style files and reconstructing the layout using Pro components from Ant Design Pro. Key changes include:

  • Removal of less-based styles and custom Card components in favor of PageContainer, ProCard, and ProDescriptions.
  • Replacement of the legacy error messaging with a custom-configured message API.
  • Reorganization of the component structure using Space and Typography for improved presentation.
Comments suppressed due to low confidence (1)

src/pages/Account/Center/index.tsx:117

  • The render function for the 'address' column references 'userInfo' directly instead of using the record parameter provided by ProDescriptions. Consider switching to a signature like 'render: (_, record) => ...' to ensure consistency and flexibility in data binding.
render: () => [userInfo?.country, userInfo?.province, userInfo?.city, userInfo?.address].filter(Boolean).join(' '),

@mss-boot mss-boot merged commit 4fb4a12 into main Mar 17, 2025
1 check passed
@mss-boot mss-boot deleted the fix/center-style branch March 17, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants