* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
22 lines
597 B
JavaScript
22 lines
597 B
JavaScript
import React from 'react';
|
|
import { Icon } from 'UI';
|
|
import { Tooltip } from 'antd';
|
|
import cn from 'classnames';
|
|
import stl from './timelinePointer.module.css';
|
|
|
|
function TimelinePointer({ icon, content }) {
|
|
return (
|
|
<Tooltip title={content}>
|
|
<div
|
|
className={cn(stl.wrapper, 'flex items-center justify-center relative')}
|
|
>
|
|
<div className={stl.pin} />
|
|
<div style={{ top: '3px' }} className={stl.icon}>
|
|
<Icon name={icon} size="18" style={{ fill: '#D3545F' }} />
|
|
</div>
|
|
</div>
|
|
</Tooltip>
|
|
);
|
|
}
|
|
|
|
export default TimelinePointer;
|