fix: fix file not committed
This commit is contained in:
parent
7f9577a386
commit
d6dbaff3c2
@ -10,10 +10,17 @@ export function renderText(text, limit) {
|
||||
export function renderGroup(group) {
|
||||
if (group === "") {
|
||||
return <Label>default</Label>
|
||||
} else if (group === "vip" || group === "pro") {
|
||||
return <Label color='yellow'>{group}</Label>
|
||||
} else if (group === "svip" || group === "premium") {
|
||||
return <Label color='red'>{group}</Label>
|
||||
}
|
||||
return <Label>{group}</Label>
|
||||
let groups = group.split(",");
|
||||
groups.sort();
|
||||
return <>
|
||||
{groups.map((group) => {
|
||||
if (group === "vip" || group === "pro") {
|
||||
return <Label color='yellow'>{group}</Label>
|
||||
} else if (group === "svip" || group === "premium") {
|
||||
return <Label color='red'>{group}</Label>
|
||||
}
|
||||
return <Label>{group}</Label>
|
||||
})}
|
||||
</>
|
||||
}
|
Loading…
Reference in New Issue
Block a user