mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
support rename Wiki (#6142)
* 01 UI support rename Wiki * rename wiki * old wiki support rename * fix wiki-v1 and wiki-v2 have same id * fix format --------- Co-authored-by: ‘JoinTyang’ <yangtong1009@163.com>
This commit is contained in:
@@ -7,6 +7,7 @@ const propTypes = {
|
||||
deleteWiki: PropTypes.func.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
isDepartment: PropTypes.bool.isRequired,
|
||||
renameWiki: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
class WikiCardGroup extends Component {
|
||||
@@ -22,10 +23,11 @@ class WikiCardGroup extends Component {
|
||||
{wikis.map((wiki, index) => {
|
||||
return (
|
||||
<WikiCardItem
|
||||
key={index}
|
||||
key={index + wiki.id}
|
||||
wiki={wiki}
|
||||
deleteWiki={this.props.deleteWiki}
|
||||
isDepartment={isDepartment}
|
||||
renameWiki={this.props.renameWiki}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
Reference in New Issue
Block a user