Skip to content

Commit dc92d8d

Browse files
committed
Fixing merge conflict
2 parents c68815f + b825666 commit dc92d8d

File tree

2 files changed

+41
-9
lines changed

2 files changed

+41
-9
lines changed

src/lib/ContestTile/CompactTemplate.tsx

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,16 @@ const IsContest = ({title, isDarkTile = true, contestData, sponsorUrl, sponsorIm
6262
const [contestTimelineObject, setContestTimelineObject] = useState<ContestSchedule | undefined>();
6363
const [hasBotRace, setHasBotRace] = useState(contestData ? !!contestData.botFindingsRepo : false);
6464
let ecosystemLogoName: string = "";
65-
if (ecosystem && (ecosystem === "Polkadot")) {
66-
ecosystemLogoName = 'logo-polkadot'
65+
if (ecosystem) {
66+
switch (ecosystem) {
67+
case "Polkadot":
68+
case "Blast":
69+
ecosystemLogoName = `logo-${ecosystem.toLowerCase()}`;
70+
break;
71+
default:
72+
ecosystemLogoName = "";
73+
break;
74+
}
6775
}
6876

6977
const updateContestTileStatus = useCallback(() => {
@@ -189,10 +197,18 @@ const IsBounty = ({title, isDarkTile = true, bountyData, sponsorUrl, sponsorImag
189197
}) => {
190198
const { amount, bountyUrl, ecosystem, languages } = bountyData;
191199
let ecosystemLogoName: string = "";
192-
if (ecosystem && (ecosystem === "Polkadot")) {
193-
ecosystemLogoName = 'logo-polkadot'
200+
if (ecosystem) {
201+
switch (ecosystem) {
202+
case "Polkadot":
203+
case "Blast":
204+
ecosystemLogoName = `logo-${ecosystem.toLowerCase()}`;
205+
break;
206+
default:
207+
ecosystemLogoName = "";
208+
break;
209+
}
194210
}
195-
211+
196212
return (
197213
<div className="body--bounty">
198214
<header>

src/lib/ContestTile/DefaultTemplate.tsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,16 @@ function IsContest({
253253
}) {
254254
const { contestUrl, amount, findingsRepo, startDate, endDate, ecosystem, languages } = contestData;
255255
let ecosystemLogoName: string = "";
256-
if (ecosystem && (ecosystem === "Polkadot")) {
257-
ecosystemLogoName = 'logo-polkadot'
256+
if (ecosystem) {
257+
switch (ecosystem) {
258+
case "Polkadot":
259+
case "Blast":
260+
ecosystemLogoName = `logo-${ecosystem.toLowerCase()}`;
261+
break;
262+
default:
263+
ecosystemLogoName = "";
264+
break;
265+
}
258266
}
259267

260268
return (
@@ -404,8 +412,16 @@ function IsBounty({
404412
const { bountyUrl, amount, startDate, ecosystem, languages } = bountyData;
405413
const endDate = "2999-01-01T00:00:00Z"
406414
let ecosystemLogoName: string = "";
407-
if (ecosystem && (ecosystem === "Polkadot")) {
408-
ecosystemLogoName = 'logo-polkadot'
415+
if (ecosystem) {
416+
switch (ecosystem) {
417+
case "Polkadot":
418+
case "Blast":
419+
ecosystemLogoName = `logo-${ecosystem.toLowerCase()}`;
420+
break;
421+
default:
422+
ecosystemLogoName = "";
423+
break;
424+
}
409425
}
410426

411427
return (

0 commit comments

Comments
 (0)