Remove PropTypes

This commit is contained in:
MrTimscampi 2021-06-15 12:05:33 +02:00
parent 4d23e79f65
commit d770581c52
9 changed files with 9 additions and 54 deletions

View file

@ -1,4 +1,3 @@
import PropTypes from 'prop-types';
import React, { FunctionComponent, useEffect, useState } from 'react';
import { appRouter } from '../appRouter';
@ -24,7 +23,7 @@ type SearchSuggestionsProps = {
parentId: string;
}
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ serverId, parentId }) => {
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ serverId, parentId }: SearchSuggestionsProps) => {
const [ suggestions, setSuggestions ] = useState([]);
useEffect(() => {
@ -69,9 +68,4 @@ const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ serverId
);
};
SearchSuggestions.propTypes = {
parentId: PropTypes.string,
serverId: PropTypes.string
};
export default SearchSuggestions;