Skip to content

Commit

Permalink
silene warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoseneca committed Jan 16, 2024
1 parent 3f135a3 commit fe5dd59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const ActivityFeed: React.FC<{}> = () => {
{!activity
? Array(10)
.fill(0)
.map(i => <Skeleton height={50} />)
.map((_, i) => <Skeleton height={50} key={i} />)
: activity.map((item, i) => {
return (
<div className={classes.activityItem} key={i}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ const JumboRoundCard: React.FC<{
<>
{Array(4)
.fill(0)
.map(() => (
<Skeleton height={30} />
.map((_, i) => (
<Skeleton height={30} key={i} />
))}
</>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const JumboCardLoading = () => {
style={{ marginBottom: '12px', marginTop: isMobile() ? '30px' : '0px' }}
/>
<Row>
{Array.from(Array(3).keys()).map(i => (
<Col>
{Array.from(Array(3).keys()).map((_, i) => (
<Col key={i}>
<Skeleton height={60} inline />
</Col>
))}
Expand Down
10 changes: 5 additions & 5 deletions packages/prop-house-webapp/src/pages/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ const Dashboard = () => {
</Col>
{loadingHouses ? (
<>
{Array.from(Array(isMobile() ? 2 : 3).keys()).map(i => (
<Col xs={6} lg={3}>
{Array.from(Array(isMobile() ? 2 : 3).keys()).map((_, i) => (
<Col xs={6} lg={3} key={i}>
<Skeleton height={280} inline />
</Col>
))}
Expand All @@ -117,8 +117,8 @@ const Dashboard = () => {
emptyIndicatorContent('houses')
) : (
houses &&
houses.map(house => (
<Col xs={6} lg={3}>
houses.map((house, i) => (
<Col xs={6} lg={3} key={i}>
<HouseCard house={house} pathTo="manager" />
</Col>
))
Expand All @@ -130,7 +130,7 @@ const Dashboard = () => {
</Col>
{loadingRounds ? (
<>
{Array.from(Array(2).keys()).map(i => (
{Array.from(Array(2).keys()).map((_, i) => (
<Col key={i} lg={6}>
<JumboCardLoading />
</Col>
Expand Down

0 comments on commit fe5dd59

Please sign in to comment.