Skip to content

Commit 831dcb7

Browse files
committed
Merge branch 'master' into prod
2 parents 493628b + 9231b8b commit 831dcb7

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

src/search/components/product-modal/ProductDetails.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,35 @@ const Header = styled.header`
4747

4848
const ScoreRow = styled.div`
4949
margin-bottom: 1.25em;
50+
51+
@media ${Device.mobile} {
52+
margin-bottom: 0.8em;
53+
}
54+
`;
55+
56+
const FriendBanner = styled.div`
57+
background: #ffe3e3;
58+
color: #c10028;
59+
padding: 10px 0;
60+
text-align: center;
61+
font-weight: 600;
62+
border-radius: 8px;
63+
display: flex;
64+
justify-content: space-between;
65+
align-items: center;
66+
padding-left: 20px;
67+
padding-right: 20px;
68+
margin-bottom: ${margin.small};
69+
70+
@media ${Device.mobile} {
71+
font-size: 12px;
72+
padding: 8px 10px;
73+
gap: 6px;
74+
75+
span {
76+
font-size: 14px;
77+
}
78+
}
5079
`;
5180

5281
const ScoreLabel = styled.div`
@@ -153,6 +182,9 @@ export const ProductDetails: React.FC<IProductDetails> = ({ product }) => {
153182
const registeredProperty = getPropertiesFromManufacturer(manufacturer, PolishPropertyName.REGISTERED);
154183
const notGlobalProperty = getPropertiesFromManufacturer(manufacturer, PolishPropertyName.NOT_GLOBAL);
155184
const capitalProperty = getPropertiesFromManufacturer(manufacturer, PolishPropertyName.CAPITAL);
185+
const isFriend = !!manufacturer.is_friend;
186+
187+
const isVerified = product.manufacturer.plScore !== null && product.manufacturer.plScore !== undefined;
156188

157189
return (
158190
<DetailsContainer>

0 commit comments

Comments
 (0)