mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-21 03:19:02 +00:00
fix: fix file not committed
This commit is contained in:
@@ -10,10 +10,17 @@ export function renderText(text, limit) {
|
|||||||
export function renderGroup(group) {
|
export function renderGroup(group) {
|
||||||
if (group === "") {
|
if (group === "") {
|
||||||
return <Label>default</Label>
|
return <Label>default</Label>
|
||||||
} else if (group === "vip" || group === "pro") {
|
}
|
||||||
|
let groups = group.split(",");
|
||||||
|
groups.sort();
|
||||||
|
return <>
|
||||||
|
{groups.map((group) => {
|
||||||
|
if (group === "vip" || group === "pro") {
|
||||||
return <Label color='yellow'>{group}</Label>
|
return <Label color='yellow'>{group}</Label>
|
||||||
} else if (group === "svip" || group === "premium") {
|
} else if (group === "svip" || group === "premium") {
|
||||||
return <Label color='red'>{group}</Label>
|
return <Label color='red'>{group}</Label>
|
||||||
}
|
}
|
||||||
return <Label>{group}</Label>
|
return <Label>{group}</Label>
|
||||||
|
})}
|
||||||
|
</>
|
||||||
}
|
}
|
Reference in New Issue
Block a user