Remove PropTypes
This commit is contained in:
parent
4d23e79f65
commit
d770581c52
9 changed files with 9 additions and 54 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue