feature/ui:1.0 feature,like mcp price method support use token and set more config about home page

This commit is contained in:
lethe committed 2025-07-30 15:59:10 +08:00
1 parent 2262a7f49a
commit 8946be619d
69 files changed
+4189 -1021

No files matched your search

+11 -9
View File
@@ -29,7 +29,7 @@ const DashboardContent: React.FC = () => {
state.user_token,
state.user,
]);
const { loginConfig } = usePlatformConfig();
const { loginConfig, paymentChannels } = usePlatformConfig();
const [logOut, useGetUser] = useGlobalStore((state) => [
state.logOut,
@@ -163,14 +163,16 @@ const DashboardContent: React.FC = () => {
</span>
</div>
<Button
variant="bordered"
onPress={handleRecharge}
aria-label="Recharge wallet"
size="sm"
>
{t("Recharge")}
</Button>
{paymentChannels.length > 0 && (
<Button
variant="bordered"
onPress={handleRecharge}
aria-label="Recharge wallet"
size="sm"
>
{t("Recharge")}
</Button>
)}
</div>
</CardBody>
</Card>