Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Personality card responsivity when does not have reviews #1176

Open
pepermao opened this issue May 1, 2024 · 0 comments · May be fixed by #1205
Open

Fix Personality card responsivity when does not have reviews #1176

pepermao opened this issue May 1, 2024 · 0 comments · May be fixed by #1205
Assignees
Labels

Comments

@pepermao
Copy link
Collaborator

pepermao commented May 1, 2024

How

Add a hasReview conditional

PersonalityCard.tsx

const hasReview = personality.stats.reviews.lenght > 0

//...code
{enableStats && hasReview && (
    <Col
        xs={24}
        sm={24}
        md={24}
        lg={header && !mobile ? 12 : 24}
        style={{
            padding: "5px 15px",
            display: "flex",
            alignItems: "center",
        }}
    >
        <Row
            style={{
                width: "100%",
                justifyContent: "space-evenly",
            }}
        >
            <ReviewStats
                stats={personality.stats}
                type="circle"
                format="count"
                width={summarized && 30}
                showInfo={!summarized}
                strokeWidth="16"
            />
        </Row>
    </Col>
)}

image

@Toxin4 Toxin4 self-assigned this May 24, 2024
@pepermao pepermao linked a pull request May 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants