]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-search.js
Ran eslint fix on existing codebase
[bookstack] / resources / js / components / entity-search.js
index 8b1861ecf6afec1eb66e9d46843e34561471efc5..0795fca98311b37c84f193d8676c32c4f013fe39 100644 (file)
@@ -1,10 +1,8 @@
-import {onSelect} from "../services/dom";
+import {onSelect} from '../services/dom';
+import {Component} from './component';
+
+export class EntitySearch extends Component {
 
-/**
- * Class EntitySearch
- * @extends {Component}
- */
-class EntitySearch {
     setup() {
         this.entityId = this.$opts.entityId;
         this.entityType = this.$opts.entityType;
@@ -54,6 +52,5 @@ class EntitySearch {
         this.loadingBlock.classList.add('hidden');
         this.searchInput.value = '';
     }
-}
 
-export default EntitySearch;
\ No newline at end of file
+}