Commit ba41deda authored by raca's avatar raca

feat: 接收pk段位字段显示

parent 2156b032
...@@ -9,6 +9,7 @@ import { badgeImages } from '../battles/const' ...@@ -9,6 +9,7 @@ import { badgeImages } from '../battles/const'
import styles from './index.module.scss' import styles from './index.module.scss'
import TopHeader from './components/top-header' import TopHeader from './components/top-header'
import ModalName from './components/modal-name' import ModalName from './components/modal-name'
import { rankTranslate } from '../battles/utils'
const AcceptPk = () => { const AcceptPk = () => {
const [isVisible, { setTrue, setFalse }] = useBoolean(false) const [isVisible, { setTrue, setFalse }] = useBoolean(false)
...@@ -110,7 +111,7 @@ const AcceptPk = () => { ...@@ -110,7 +111,7 @@ const AcceptPk = () => {
className={styles.badgeIcon} className={styles.badgeIcon}
/> />
<Text className={styles.rankText}> <Text className={styles.rankText}>
{details?.userRanks.level} {rankTranslate(details?.userRanks.level)}
</Text> </Text>
</View> </View>
<Text> <Text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment