mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
21 lines
489 B
JavaScript
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>
|
|
);
|
|
}
|