🎨 refactor: Setup Wizard UI & Clean Up Redundant Code
Summary of changes
1. SetupWizard.jsx
• Center card (`min-h-screen flex items-center justify-center`) and remove top margin.
• Merge step indicator/content into single card; added `Divider` separator.
• Added sweep-shine animation to current step title via existing `shine-text` class.
• Simplified imports (removed Avatar / Typography) and deleted unused modal state.
2. Step components
• Stripped outer `Card` and header sections from `DatabaseStep.jsx`, `AdminStep.jsx`, `UsageModeStep.jsx`, `CompleteStep.jsx` to fit single-card layout.
• Removed unused imports and props.
3. Components cleanup
• Deleted obsolete files:
- `components/setup/components/SetupSteps.jsx`
- `components/setup/components/modals/UsageModeInfoModal.jsx`
• Updated `setup/index.jsx` exports accordingly.
4. Styling
• Ensured global sweep-shine effect already present in `index.css` is reused for step titles.
5. i18n
• Pruned unused translation keys related to removed components from `i18n/locales/en.json`.
6. Miscellaneous
• Removed redundant Avatar/Icon imports from multiple files.
• All linter checks pass with no new warnings.
This commit consolidates the initialization flow into a cleaner, centered single-card wizard, adds visual polish, and reduces dead code for easier maintenance.
This commit is contained in:
@@ -54,7 +54,7 @@ const InvitationCard = ({
|
||||
{/* 收益展示区域 */}
|
||||
<div className='space-y-4'>
|
||||
{/* 主要收益卡片 - 待使用收益 */}
|
||||
<Card className='!rounded-xl with-pastel-balls'>
|
||||
<Card className='!rounded-xl'>
|
||||
<div className='flex justify-between items-center mb-3'>
|
||||
<div className="flex items-center">
|
||||
<TrendingUp size={16} className="mr-2 text-slate-600 dark:text-slate-300" />
|
||||
|
||||
Reference in New Issue
Block a user