oddsgate-ds 1.0.197 → 1.0.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/LegalLinks/LegalLinks.component.tsx +3 -3
- package/src/components/atoms/LegalLinksDropdown/LegalLinksDropdown.theme.ts +2 -2
- package/src/components/molecules/AwardCard/AwardCard.theme.ts +1 -1
package/package.json
CHANGED
|
@@ -18,12 +18,12 @@ const LegalLinks = ({
|
|
|
18
18
|
// If the link has children, render as dropdown
|
|
19
19
|
if (link.children && link.children.length > 0) {
|
|
20
20
|
return (
|
|
21
|
-
<li key={`
|
|
21
|
+
<li key={`legalLink-${index}`}>
|
|
22
22
|
<LegalLinksDropdown title={link.label} className="font-epilogue">
|
|
23
23
|
{link.children.map((childLink, childIndex) => {
|
|
24
24
|
if (!childLink.label || !childLink.url) return null
|
|
25
25
|
return (
|
|
26
|
-
<LegalLinksDropdownItem key={`
|
|
26
|
+
<LegalLinksDropdownItem key={`childLink-${childIndex}`}>
|
|
27
27
|
<a
|
|
28
28
|
href={childLink.url}
|
|
29
29
|
target="_blank"
|
|
@@ -45,7 +45,7 @@ const LegalLinks = ({
|
|
|
45
45
|
if (!link.url) return <></>
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
|
-
<li key={`
|
|
48
|
+
<li key={`legalLink-${index}`}>
|
|
49
49
|
<a
|
|
50
50
|
href={link.url}
|
|
51
51
|
target="_blank"
|
|
@@ -50,7 +50,7 @@ export const StyledLegalLinksDropdownTitle = styled.span`
|
|
|
50
50
|
`
|
|
51
51
|
|
|
52
52
|
export const StyledLegalLinksDropdownContainer = styled.ul.withConfig({
|
|
53
|
-
shouldForwardProp:
|
|
53
|
+
shouldForwardProp: prop => prop !== 'openUpward' && prop !== 'isVisible'
|
|
54
54
|
})<ILegalLinksDropdownContainer>`
|
|
55
55
|
position: absolute;
|
|
56
56
|
${props => (props.openUpward ? 'bottom: 100%;' : 'top: 100%;')}
|
|
@@ -172,7 +172,7 @@ export const StyledLegalLinksDropdownItem = styled.li<ILegalLinksDropdownItem>`
|
|
|
172
172
|
`
|
|
173
173
|
|
|
174
174
|
export const StyledLegalLinksDropdownIcon = styled.span.withConfig({
|
|
175
|
-
shouldForwardProp:
|
|
175
|
+
shouldForwardProp: prop => prop !== 'isOpen'
|
|
176
176
|
})<{ isOpen?: boolean }>`
|
|
177
177
|
font-size: 10px;
|
|
178
178
|
display: flex;
|
|
@@ -16,7 +16,7 @@ export const StyledAwardCardWrapper = styled.div<IAwardCard>`
|
|
|
16
16
|
justify-content: space-between;
|
|
17
17
|
gap: 1.125rem;
|
|
18
18
|
background-color: ${colors.third10};
|
|
19
|
-
padding:
|
|
19
|
+
padding: 1rem 0.75rem;
|
|
20
20
|
border-radius: 0 60px;
|
|
21
21
|
height: 100%;
|
|
22
22
|
`
|