From 3f135a3b7eb5a8e99bfbcd5c6074f35a91bca1c2 Mon Sep 17 00:00:00 2001 From: cryptoseneca <85328329+cryptoseneca@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:39:11 -0500 Subject: [PATCH 1/2] fix --- .../src/components/JumboRoundCard/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx b/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx index bc2c5285a..83ab9a4b8 100644 --- a/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx +++ b/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx @@ -262,8 +262,9 @@ const JumboRoundCard: React.FC<{ {proposals === undefined ? ( ) : ( - proposing || - (voting && p.proposer)} />) + (proposing || voting) && ( + p.proposer)} /> + ) )} From fe5dd59c8ddf11ac15678cfec10ec391ab1f2538 Mon Sep 17 00:00:00 2001 From: cryptoseneca <85328329+cryptoseneca@users.noreply.github.com> Date: Tue, 16 Jan 2024 17:06:20 -0500 Subject: [PATCH 2/2] silene warnings --- .../src/components/ActivityFeed/index.tsx | 2 +- .../src/components/JumboRoundCard/index.tsx | 4 ++-- .../src/components/LoadingCards/index.tsx | 4 ++-- .../prop-house-webapp/src/pages/Dashboard/index.tsx | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/prop-house-webapp/src/components/ActivityFeed/index.tsx b/packages/prop-house-webapp/src/components/ActivityFeed/index.tsx index a27082c20..ab0f49934 100644 --- a/packages/prop-house-webapp/src/components/ActivityFeed/index.tsx +++ b/packages/prop-house-webapp/src/components/ActivityFeed/index.tsx @@ -110,7 +110,7 @@ const ActivityFeed: React.FC<{}> = () => { {!activity ? Array(10) .fill(0) - .map(i => ) + .map((_, i) => ) : activity.map((item, i) => { return (
diff --git a/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx b/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx index 83ab9a4b8..7d18b5fe3 100644 --- a/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx +++ b/packages/prop-house-webapp/src/components/JumboRoundCard/index.tsx @@ -241,8 +241,8 @@ const JumboRoundCard: React.FC<{ <> {Array(4) .fill(0) - .map(() => ( - + .map((_, i) => ( + ))} ) : ( diff --git a/packages/prop-house-webapp/src/components/LoadingCards/index.tsx b/packages/prop-house-webapp/src/components/LoadingCards/index.tsx index 6ccf86c47..282044819 100644 --- a/packages/prop-house-webapp/src/components/LoadingCards/index.tsx +++ b/packages/prop-house-webapp/src/components/LoadingCards/index.tsx @@ -26,8 +26,8 @@ export const JumboCardLoading = () => { style={{ marginBottom: '12px', marginTop: isMobile() ? '30px' : '0px' }} /> - {Array.from(Array(3).keys()).map(i => ( - + {Array.from(Array(3).keys()).map((_, i) => ( + ))} diff --git a/packages/prop-house-webapp/src/pages/Dashboard/index.tsx b/packages/prop-house-webapp/src/pages/Dashboard/index.tsx index a52735399..6a0b930c6 100644 --- a/packages/prop-house-webapp/src/pages/Dashboard/index.tsx +++ b/packages/prop-house-webapp/src/pages/Dashboard/index.tsx @@ -107,8 +107,8 @@ const Dashboard = () => { {loadingHouses ? ( <> - {Array.from(Array(isMobile() ? 2 : 3).keys()).map(i => ( - + {Array.from(Array(isMobile() ? 2 : 3).keys()).map((_, i) => ( + ))} @@ -117,8 +117,8 @@ const Dashboard = () => { emptyIndicatorContent('houses') ) : ( houses && - houses.map(house => ( - + houses.map((house, i) => ( + )) @@ -130,7 +130,7 @@ const Dashboard = () => { {loadingRounds ? ( <> - {Array.from(Array(2).keys()).map(i => ( + {Array.from(Array(2).keys()).map((_, i) => (