1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00
Files
seahub/frontend/src/metadata/metadata-view/components/cell-editor/editor.js

23 lines
432 B
JavaScript
Raw Normal View History

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;