diff --git a/components/common/EventDataButton.js b/components/common/EventDataButton.js index 5393d7d5..1b95f950 100644 --- a/components/common/EventDataButton.js +++ b/components/common/EventDataButton.js @@ -1,5 +1,4 @@ import EventDataForm from 'components/metrics/EventDataForm'; -import PropTypes from 'prop-types'; import { useState } from 'react'; import { Button, Icon, Modal, Icons } from 'react-basics'; import { FormattedMessage } from 'react-intl'; @@ -44,8 +43,4 @@ function EventDataButton({ websiteId }) { ); } -EventDataButton.propTypes = { - websiteId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), -}; - export default EventDataButton; diff --git a/components/common/Favicon.js b/components/common/Favicon.js index ad7056af..2127d482 100644 --- a/components/common/Favicon.js +++ b/components/common/Favicon.js @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import styles from './Favicon.module.css'; function getHostName(url) { @@ -20,8 +19,4 @@ function Favicon({ domain, ...props }) { ) : null; } -Favicon.propTypes = { - domain: PropTypes.string, -}; - export default Favicon; diff --git a/components/common/NoData.js b/components/common/NoData.js index 4ee593ae..4a23675d 100644 --- a/components/common/NoData.js +++ b/components/common/NoData.js @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; import styles from './NoData.module.css'; @@ -11,8 +10,4 @@ function NoData({ className }) { ); } -NoData.propTypes = { - className: PropTypes.string, -}; - export default NoData; diff --git a/components/common/OverflowText.js b/components/common/OverflowText.js index 9be705b8..aaeb9c46 100644 --- a/components/common/OverflowText.js +++ b/components/common/OverflowText.js @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import { useCallback, useEffect, useRef, useState } from 'react'; import ReactTooltip from 'react-tooltip'; @@ -58,9 +57,4 @@ const OverflowText = ({ children, tooltipId }) => { ); }; -OverflowText.propTypes = { - children: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired, - tooltipId: PropTypes.string.isRequired, -}; - export default OverflowText; diff --git a/components/common/Tag.js b/components/common/Tag.js index b9005d86..d30f0d0f 100644 --- a/components/common/Tag.js +++ b/components/common/Tag.js @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './Tag.module.css'; @@ -6,9 +5,4 @@ function Tag({ className, children }) { return {children}; } -Tag.propTypes = { - className: PropTypes.string, - children: PropTypes.node, -}; - export default Tag; diff --git a/components/common/WorldMap.js b/components/common/WorldMap.js index 55ee3109..8afd84e0 100644 --- a/components/common/WorldMap.js +++ b/components/common/WorldMap.js @@ -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; diff --git a/components/pages/websites/WebsiteMenuView.js b/components/pages/websites/WebsiteMenuView.js index 49e42436..464b3c1e 100644 --- a/components/pages/websites/WebsiteMenuView.js +++ b/components/pages/websites/WebsiteMenuView.js @@ -1,6 +1,7 @@ import { Row, Column, Menu, Item, Icon, Button } from 'react-basics'; import { useIntl } from 'react-intl'; import Link from 'next/link'; +import classNames from 'classnames'; import BrowsersTable from 'components/metrics/BrowsersTable'; import CountriesTable from 'components/metrics/CountriesTable'; import DevicesTable from 'components/metrics/DevicesTable'; @@ -83,7 +84,7 @@ export default function WebsiteMenuView({ websiteId, websiteDomain }) { return ( - +