diff --git a/src/page/FavPlayersPage.tsx b/src/page/FavPlayersPage.tsx index 64e54ec..b9abc98 100644 --- a/src/page/FavPlayersPage.tsx +++ b/src/page/FavPlayersPage.tsx @@ -1,4 +1,4 @@ -import { Avatar, Card, Divider, Flex, Image, Segmented, Space, Typography } from "antd"; +import { Avatar, Card, Divider, Flex, Image, Segmented, Typography } from "antd"; import { useFavPlayerStore } from "../store/useFavPlayerStore"; import { useNavigate } from "react-router"; import { useMemo, useState } from "react"; diff --git a/src/page/ProfilePage.tsx b/src/page/ProfilePage.tsx index eb7380c..4cd1a0d 100644 --- a/src/page/ProfilePage.tsx +++ b/src/page/ProfilePage.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useMemo } from "react"; import { Link, useLoaderData, useNavigate } from "react-router"; -import { Avatar, Descriptions, Divider, Flex, FloatButton, Image, Typography } from "antd"; +import { Avatar, Divider, Flex, FloatButton, Image, Typography } from "antd"; import { HomeOutlined } from "@ant-design/icons"; import { useTitle } from "ahooks"; import type { XCXProfile } from "../types/profile"; @@ -49,20 +49,23 @@ function Raket(props: { profile?: XCXProfile | null }) { return ( <> 装备 - - - {qiupaitype} + + + 底板: + {qiupaitype} ({qiupai}) - - - {zhengshoutype} + + + 正手: + {zhengshoutype} ({zhengshou}) - - - {fanshoutype} + + + 反手: + {fanshoutype} ({fanshou}) - - + + ); } @@ -122,9 +125,21 @@ export default function ProfilePage() { /> - 姓名:{profile?.realname} - 积分:{profile?.score} - + + + 姓名: + {profile?.realname} + + + 积分: + {profile?.score} + + + 排名: + {profile?.rank} + + + {(tags.length > 0 && tags.reduce((a, b) => (<>{a}{b})))} 简介