Skip to content

Commit ec62a92

Browse files
authored
Merge pull request #67 from code4rena-dev/samus/block-level-nesting-audit
Block level nesting audit
2 parents 3c8a1b8 + ec02718 commit ec62a92

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code4rena/components-library",
3-
"version": "4.0.2",
3+
"version": "4.0.3",
44
"description": "Code4rena's official components library ",
55
"types": "./dist/lib.d.ts",
66
"exports": {

src/lib/Card/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const Card = ({
7474
{(footerDetails || footerLinks) && (
7575
<footer className="card__footer">
7676
{footerDetails && (
77-
<p className="card__footer-details">{footerDetails}</p>
77+
<div className="card__footer-details">{footerDetails}</div>
7878
)}
7979
{footerLinks && (
8080
<div className="card__footer-link-wrapper">

src/lib/ContestTile/DefaultTemplate.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function IsContest({
313313
</a>
314314
</h2>
315315
{/* Contest description */}
316-
<p className="description">
316+
<div className="description">
317317
{description}{" "}
318318
{((hasBotRace && contestTimelineObject && (contestTimelineObject.botRaceStatus === Status.UPCOMING ||
319319
contestTimelineObject.botRaceStatus === Status.LIVE))
@@ -344,7 +344,7 @@ function IsContest({
344344
size={TagSize.NARROW} />
345345
)}
346346
</div>}
347-
</p>
347+
</div>
348348
</div>
349349
</header>
350350
{/* Reward pool amount */}
@@ -464,7 +464,7 @@ function IsBounty({
464464
</a>
465465
</h2>
466466
{/* Contest description */}
467-
<p className="description">
467+
<div className="description">
468468
{description}
469469
{(ecosystem || (languages && languages.length > 0)) && <div className="tags">
470470
{ecosystem && <Tag
@@ -482,7 +482,7 @@ function IsBounty({
482482
size={TagSize.NARROW} />
483483
)}
484484
</div>}
485-
</p>
485+
</div>
486486
</div>
487487
</header>
488488
{/* Reward pool amount */}

src/lib/Input/Input.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ export const Input = ({
117117
}
118118
}
119119
if (required) {
120-
console.log(selectValue);
121-
122120
if (variant !== InputVariant.SELECT && (value === "" || value == null)) {
123121
errorMessages.push("This field is required");
124122
} else if (

src/lib/Tag/Tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const Tag = ({
4242

4343
return (
4444
<div id={id ?? undefined} className={`${styling} ${className}`}>
45-
{iconLeft && typeof iconLeft === "string" && <img alt="" src={iconLeft} width={16} height={16} />}
45+
{iconLeft && typeof iconLeft === "string" && <img alt="left-icon" src={iconLeft} width={16} height={16} />}
4646
{iconLeft && typeof iconLeft !== "string" && <div className="icon">
4747
{iconLeft}
4848
</div>}

0 commit comments

Comments
 (0)