Commit fe4554a7 by JustSong

fix: fix file not committed

parent d27698ee
...@@ -10,10 +10,17 @@ export function renderText(text, limit) { ...@@ -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>
})}
</>
} }
\ No newline at end of file
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 sign in to comment