mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +00:00
* feat: filename support open a file * feat: add currentRepoInfo * feat: op code --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
23 lines
432 B
JavaScript
23 lines
432 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { CellType } from '../../_basic';
|
|
import FileNameEditor from './file-name-editor';
|
|
|
|
const Editor = (props) => {
|
|
|
|
switch (props.column.type) {
|
|
case CellType.FILE_NAME: {
|
|
return (<FileNameEditor {...props} />);
|
|
}
|
|
default: {
|
|
return null;
|
|
}
|
|
}
|
|
};
|
|
|
|
Editor.propTypes = {
|
|
column: PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default Editor;
|