Explorar o código

removed unnecessary code

Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
5cd2b05295
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      packages/app/src/components/Page/TagsInput.tsx

+ 1 - 2
packages/app/src/components/Page/TagsInput.tsx

@@ -8,7 +8,6 @@ import { apiGet } from '~/client/util/apiv1-client';
 import { ITagsSearchApiv1Result } from '~/interfaces/tag';
 import { ITagsSearchApiv1Result } from '~/interfaces/tag';
 
 
 type TypeaheadInstance = {
 type TypeaheadInstance = {
-  focus: () => void,
   _handleMenuItemSelect: (activeItem: string, e: React.KeyboardEvent) => void,
   _handleMenuItemSelect: (activeItem: string, e: React.KeyboardEvent) => void,
   state: {
   state: {
     initialItem: string,
     initialItem: string,
@@ -17,8 +16,8 @@ type TypeaheadInstance = {
 
 
 type Props = {
 type Props = {
   tags: string[],
   tags: string[],
+  autoFocus: boolean,
   onTagsUpdated: (tags: string[]) => void,
   onTagsUpdated: (tags: string[]) => void,
-  autoFocus: boolean
 }
 }
 
 
 const TagsInput: FC<Props> = (props: Props) => {
 const TagsInput: FC<Props> = (props: Props) => {