diff options
| author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-09-19 01:22:20 +0300 | 
|---|---|---|
| committer | eug-vs <eug-vs@keemail.me> | 2020-10-08 22:06:50 +0300 | 
| commit | 2a8d307b53b1b7fa5962e73b5e506c7466b79a7e (patch) | |
| tree | 40f3e44a3a88614a9eda66fdae445f5c9dc3ae7b /src/components/PollsList/PollsList.tsx | |
| parent | 3aa75f9454332342fdb76d3b8466ef52f058cf4d (diff) | |
| download | which-ui-2a8d307b53b1b7fa5962e73b5e506c7466b79a7e.tar.gz | |
fix eslint errors
Diffstat (limited to 'src/components/PollsList/PollsList.tsx')
| -rw-r--r-- | src/components/PollsList/PollsList.tsx | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/components/PollsList/PollsList.tsx b/src/components/PollsList/PollsList.tsx index 3eeed2b..1ad7763 100644 --- a/src/components/PollsList/PollsList.tsx +++ b/src/components/PollsList/PollsList.tsx @@ -1,4 +1,4 @@ -import React, {useCallback, useState, useMemo, useRef, useEffect} from 'react'; +import React, { useCallback, useState, useMemo, useEffect } from 'react';  import {    WindowScroller,    AutoSizer, @@ -17,7 +17,7 @@ interface PropTypes {  }  const cache = new CellMeasurerCache({ -  fixedWidth: true, +  fixedWidth: true  });  const PAGE_SIZE = 10; @@ -25,9 +25,9 @@ const PAGE_SIZE = 10;  const PollsList: React.FC<PropTypes> = ({ polls, mutate }) => {    const [displayCount, setDisplayCount] = useState<number>(PAGE_SIZE); -  useEffect(()=> { +  useEffect(() => {      cache.clearAll(); -  },[polls]); +  }, [polls]);    const rowRenderer = useCallback(({ index, style, key, parent }) => (      <RenderItem | 
