I am brand new to React and am having a hard time understanding the error I am receiving. I managed to fix some other errors of this type, but this specific one has me lost. In a typescript file, I have:
export interface FarmsProps {
tokenMode?: boolean
}
and then further down
const Farms: React.FC<FarmsProps> = (farmsProps) => {
const { path } = useRouteMatch()
const TranslateString = useI18n()
const farms = useFarms();
const prices = usePrices()
const farmsLP = useFarms()
const cakePrice = usePriceCakeBusd()
const bnbPrice = usePriceBnbBusd()
const { account, ethereum }: { account: string; ethereum: provider } = useWallet()
const { tokenMode } = farmsProps;
const [modalOpen, setModalOpen] = useState(true)
const handleModal = async () => {
setModalOpen(!modalOpen)
}
I get the following error when compiling:
Failed to compile.
src/views/LiqPools/Farms.tsx
Line 26:6: 'tokenMode' PropType is defined but prop is never used react/no-unused-prop-types
Search for the keywords to learn more about each error.
Any guidance is much appreciated.