cb9d836227
集中保留原版权声明,移除文件头检查和全局测试忽略规则。验证:全量单测、受影响用例复测及静态检查通过。
17 lines
641 B
React
17 lines
641 B
React
import React from 'react';
|
|
|
|
/**
|
|
* 认证页统一的「— 文案 —」分隔线(如「或」「还没有企业?」)。
|
|
* 两侧细线 + 居中弱化文字,不依赖底色遮挡,玻璃卡片与深色模式下都干净。
|
|
* 样式见 src/styles/prototype.css 的 .auth-divider。
|
|
*/
|
|
const AuthDivider = ({ children, className = '' }) => (
|
|
<div className={`auth-divider ${className}`} role='separator'>
|
|
<span className='auth-divider-line' aria-hidden='true' />
|
|
<span className='auth-divider-text'>{children}</span>
|
|
<span className='auth-divider-line' aria-hidden='true' />
|
|
</div>
|
|
);
|
|
|
|
export default AuthDivider;
|