Removed prop-types.

This commit is contained in:
Mike Cao 2023-02-10 03:37:06 -08:00
parent c815e7cd51
commit d4437427c4
9 changed files with 11 additions and 41 deletions

View file

@ -1,6 +1,5 @@
import { useState, useMemo } from 'react';
import { useRouter } from 'next/router';
import PropTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import { ComposableMap, Geographies, Geography, ZoomableGroup } from 'react-simple-maps';
import classNames from 'classnames';
@ -89,15 +88,4 @@ function WorldMap({ data, className }) {
);
}
WorldMap.propTypes = {
data: PropTypes.arrayOf(
PropTypes.shape({
x: PropTypes.string,
y: PropTypes.number,
z: PropTypes.number,
}),
),
className: PropTypes.string,
};
export default WorldMap;