aboutsummaryrefslogtreecommitdiff
path: root/src/components/Feed/Feed.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-10 00:02:24 +0300
committereug-vs <eug-vs@keemail.me>2020-08-10 00:02:24 +0300
commitfd6e663a1bcc43cfc49bda99ccbfab380489324b (patch)
treeea25ea2c81db0f64e10123dbadd73f361b904da2 /src/components/Feed/Feed.tsx
parent359ec6a68ea92b3d1eecf020742157eb3be90b9f (diff)
downloadwhich-ui-fd6e663a1bcc43cfc49bda99ccbfab380489324b.tar.gz
feat!: add useLocalStorage hook
Diffstat (limited to 'src/components/Feed/Feed.tsx')
-rw-r--r--src/components/Feed/Feed.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/Feed/Feed.tsx b/src/components/Feed/Feed.tsx
index b857cc0..5805e35 100644
--- a/src/components/Feed/Feed.tsx
+++ b/src/components/Feed/Feed.tsx
@@ -16,12 +16,11 @@ interface RenderPropTypes {
const Feed: React.FC<PropTypes> = ({ polls }) => {
-
const RenderItem: React.FC<RenderPropTypes> = ({ index, style, key }) => {
const poll = polls[index];
return (
// To re-render on list resize, add this info to key
- <div key={key + polls.length} style={style}>
+ <div key={key + polls.length} style={style}>
<PollCard initialPoll={poll} />
</div>
);