first commit

This commit is contained in:
jerryjzhang
2023-06-12 18:44:01 +08:00
commit dc4fc69b57
879 changed files with 573090 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { PREFIX_CLS } from '../../../common/constants';
type Props = {
domain: string;
onApplyAuth?: (domain: string) => void;
};
const ApplyAuth: React.FC<Props> = ({ domain, onApplyAuth }) => {
const prefixCls = `${PREFIX_CLS}-apply-auth`;
return (
<div className={prefixCls}>
{onApplyAuth ? (
<span
className={`${prefixCls}-apply`}
onClick={() => {
onApplyAuth(domain);
}}
>
</span>
) : (
'请联系管理员申请权限'
)}
</div>
);
};
export default ApplyAuth;

View File

@@ -0,0 +1,13 @@
@import '../../../styles/index.less';
@apply-auth-cls: ~'@{supersonic-chat-prefix}-apply-auth';
.@{apply-auth-cls} {
font-size: 14px;
color: var(--text-color);
&-apply {
color: var(--chat-blue);
cursor: pointer;
}
}