From 77b8d918def9866ab3fa2515b230b0d9c342da94 Mon Sep 17 00:00:00 2001 From: CalciumIon <1808837298@qq.com> Date: Wed, 11 Dec 2024 20:36:44 +0800 Subject: [PATCH] refactor: Simplify PersonalSetting component layout - Moved footer content from the Card component to a separate Descriptions component for better structure. - Maintained the display of user quota, historical consumption, and request count while improving readability. --- web/src/components/PersonalSetting.js | 40 ++++++++------------------- 1 file changed, 11 insertions(+), 29 deletions(-) diff --git a/web/src/components/PersonalSetting.js b/web/src/components/PersonalSetting.js index cb313337..38323360 100644 --- a/web/src/components/PersonalSetting.js +++ b/web/src/components/PersonalSetting.js @@ -363,36 +363,18 @@ const PersonalSetting = () => { } - footer={ - - - {renderQuota(userState?.user?.quota)} - - - {renderQuota(userState?.user?.used_quota)} - - - {userState.user?.request_count} - - - } > - 可用模型 -
- - {models.map((model) => ( - { - copyText(model); - }} - > - {model} - - ))} - -
+ + + {renderQuota(userState?.user?.quota)} + + + {renderQuota(userState?.user?.used_quota)} + + + {userState.user?.request_count} + +