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, useRef } from 'react';
|
||||
|
||||
import cardBuilder from '../cardbuilder/cardBuilder';
|
||||
|
@ -22,7 +21,7 @@ type SearchResultsRowProps = {
|
|||
cardOptions: Record<string, any>;
|
||||
}
|
||||
|
||||
const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, items = [], cardOptions = {} }) => {
|
||||
const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, items = [], cardOptions = {} }: SearchResultsRowProps) => {
|
||||
const element = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -48,10 +47,4 @@ const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, ite
|
|||
);
|
||||
};
|
||||
|
||||
SearchResultsRow.propTypes = {
|
||||
title: PropTypes.string,
|
||||
items: PropTypes.array,
|
||||
cardOptions: PropTypes.object
|
||||
};
|
||||
|
||||
export default SearchResultsRow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue