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, 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;