MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / renderStatus

Function renderStatus

web/src/components/table/UsersTable.js:82–99  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

80 }
81
82 const renderStatus = (status) => {
83 switch (status) {
84 case 1:
85 return <Tag color='green' shape='circle' prefixIcon={<CheckCircle size={14} />}>{t('已激活')}</Tag>;
86 case 2:
87 return (
88 <Tag color='red' shape='circle' prefixIcon={<XCircle size={14} />}>
89 {t('已封禁')}
90 </Tag>
91 );
92 default:
93 return (
94 <Tag color='grey' shape='circle' prefixIcon={<HelpCircle size={14} />}>
95 {t('未知状态')}
96 </Tag>
97 );
98 }
99 };
100
101 const columns = [
102 {

Callers 1

UsersTable.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected