Skip to content

Commit

Permalink
Hide giv power rank in not givback eligible projects
Browse files Browse the repository at this point in the history
related to #3667 (comment)
  • Loading branch information
mohammadranjbarz committed Sep 26, 2024
1 parent 5b7467f commit b9e5907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/views/project/projectGIVPower/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const itemPerPage = 10;
const ProjectGIVPowerIndex: FC<IProjectGIVPowerIndexProps> = () => {
const [page, setPage] = useState(0);

const { isBoostingsLoading, boostersData } = useProjectContext();
const { isBoostingsLoading, boostersData, projectData } = useProjectContext();

Check failure on line 28 in src/components/views/project/projectGIVPower/index.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `·` with `⏎↹↹`
const hasGivPower = boostersData ? boostersData.totalCount > 0 : false;

if (isBoostingsLoading) return <WrappedSpinner size={250} />;
Expand Down Expand Up @@ -56,9 +56,9 @@ const ProjectGIVPowerIndex: FC<IProjectGIVPowerIndexProps> = () => {
/>
</Flex>
</Col>
<Col lg={4}>
{projectData.isGivbackEligible && (<Col lg={4}>

Check failure on line 59 in src/components/views/project/projectGIVPower/index.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `·(` with `(⏎↹↹↹↹↹`
<GIVpowerCard />

Check failure on line 60 in src/components/views/project/projectGIVPower/index.tsx

View workflow job for this annotation

GitHub Actions / build

Insert `↹`
</Col>
</Col>)}

Check failure on line 61 in src/components/views/project/projectGIVPower/index.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `</Col>` with `↹</Col>⏎↹↹↹↹`
</Row>
</>
) : (
Expand Down

0 comments on commit b9e5907

Please sign in to comment.