add file sign and some refactoring
This commit is contained in:
1 parent
58bcd8b857
commit
3a1b4354db
14 files changed
+830
-118
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import s from './signature.module.css'
|
||||
|
||||
import { Sign } from '@/types'
|
||||
import { FiShield } from 'react-icons/fi'
|
||||
import Tooltip from 'rc-tooltip'
|
||||
|
||||
export type SignatureProps = Sign
|
||||
export const Signature: React.FC<SignatureProps> = props => {
|
||||
const content = (
|
||||
<ul className={s.signature}>
|
||||
<li>Дата и время подписания: {props.date}</li>
|
||||
<li>ФИО подписавшего документ: {props.person}</li>
|
||||
<li>Должность: {props.position}</li>
|
||||
<li>Уникальный программный ключ: {props.key}</li>
|
||||
</ul>
|
||||
)
|
||||
|
||||
return (
|
||||
<>
|
||||
<Tooltip overlayClassName={'hudozka'} placement="left" trigger={['click']} overlay={content}>
|
||||
<FiShield className={s.secure} size={20} />
|
||||
</Tooltip>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user