ant-design/site/theme/template/Content/EditButton.jsx
二货机器人 64b905e9bd
chore: Update @ant-design/icons deps (#19979)
* update icons deps

* update all icon ref

* fix lint

* update snapshot
2019-11-28 12:34:33 +08:00

21 lines
489 B
JavaScript

import React from 'react';
import { Tooltip } from 'antd';
import { EditOutlined } from '@ant-design/icons';
const branchUrl = 'https://github.com/ant-design/ant-design/edit/master/';
export default function EditButton({ title, filename }) {
return (
<Tooltip title={title}>
<a
className="edit-button"
href={`${branchUrl}${filename}`}
target="_blank"
rel="noopener noreferrer"
>
<EditOutlined />
</a>
</Tooltip>
);
}