feat: able to set group ratio now (close #62, close #142)

This commit is contained in:
JustSong committed 2023-06-11 11:08:16 +08:00
1 parent 2d2c6865d5
commit 1e791392f2
10 files changed
+134 -8

No files matched your search

+4
View File
@@ -10,6 +10,10 @@ 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>
}