Skip to content

Commit

Permalink
Merge pull request #474 from OpenCatalogi/feature/OP-288/common-groun…
Browse files Browse the repository at this point in the history
…d-rating-component-detail-page

feature/OP-288/common-ground-rating-component-detail-page
  • Loading branch information
remko48 authored May 7, 2024
2 parents eab83c1 + 847bc2b commit 7ca5a48
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
}

.goldRatingButton {
background-color: #d4af37;
background-color: #d4af37 !important;
}
.goldRatingButton:hover,
.goldRatingButton:active,
Expand All @@ -343,7 +343,7 @@
}

.silverRatingButton {
background-color: #bcc6cc;
background-color: #bcc6cc !important;
}
.silverRatingButton:hover,
.silverRatingButton:active,
Expand All @@ -353,7 +353,7 @@
}

.bronzeRatingButton {
background-color: #a97142;
background-color: #a97142 !important;
}
.bronzeRatingButton:hover,
.bronzeRatingButton:active,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,8 @@ export const ComponentsDetailTemplate: React.FC<ComponentsDetailTemplateProps> =
e.preventDefault();
}}
data-tooltip-id={TOOLTIP_ID}
data-tooltip-content={t(
getCommongroundRating(_getComponent.data.embedded?.nl?.embedded?.commonground?.rating ?? 0),
)}
data-tooltip-content={`${t("This component has a rating of")} ${t(getCommongroundRating(_getComponent.data.embedded?.nl?.embedded?.commonground?.rating ?? 0))}`
}
>
<Icon>
{getCommongroundImage(_getComponent.data.embedded?.nl?.embedded?.commonground?.rating ?? 0)}
Expand Down
1 change: 1 addition & 0 deletions pwa/src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,5 @@ export const en = {
"Show Total": "Show Total",
"More information": "More information",
"Common Ground rating": "Common Ground rating",
"This component has a rating of": "This component has a rating of",
};
1 change: 1 addition & 0 deletions pwa/src/translations/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,5 @@ export const nl = {
"Show Total": "Toon Aantal",
"More information": "Meer informatie",
"Common Ground rating": "Common Ground beoordeling",
"This component has a rating of": "Dit component is beoordeeld met de status",
};

0 comments on commit 7ca5a48

Please sign in to comment.