export defaultは微妙

This commit is contained in:
shibafu 2020-08-13 01:57:09 +09:00
parent 064cfff211
commit e961a2d4b4
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import MetadataPreview from './components/MetadataPreview.vue';
import { fetchGet, ResponseError } from './fetch';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import TagInput2 from './components/TagInput2';
import { TagInput as TagInput2 } from './components/TagInput2';
export const bus = new Vue({ name: 'EventBus' });

View File

@ -9,7 +9,7 @@ type TagInputProps = {
isInvalid: boolean;
};
const TagInput: React.FC<TagInputProps> = ({ id, name, value, isInvalid }) => {
export const TagInput: React.FC<TagInputProps> = ({ id, name, value, isInvalid }) => {
const [tags, setTags] = useState(value.trim() !== '' ? value.trim().split(' ') : []);
const [buffer, setBuffer] = useState('');
const containerClass = classNames('form-control', 'h-auto', { 'is-invalid': isInvalid });
@ -72,5 +72,3 @@ const TagInput: React.FC<TagInputProps> = ({ id, name, value, isInvalid }) => {
</div>
);
};
export default TagInput;