import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'antd'; import { Link } from 'react-router-dom'; const WikiView = props => { const { editorEable, onEditor, uid, username, editorTime, desc } = props; return (
{username && (
由{' '} {username} {' '} 修改于 {editorTime}
)}
); }; WikiView.propTypes = { editorEable: PropTypes.bool, onEditor: PropTypes.func, uid: PropTypes.number, username: PropTypes.string, editorTime: PropTypes.string, desc: PropTypes.string }; export default WikiView;