export defaultは微妙
This commit is contained in:
parent
064cfff211
commit
e961a2d4b4
@ -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' });
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user