oddsgate-ds 1.0.195 → 1.0.197
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -4
- 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 +6 -2
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={`dropdown-${link.label}-${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={`childLink-${childLink.url}-${childIndex}`}>
|
|
26
|
+
<LegalLinksDropdownItem key={`child-${childLink.label}-${childLink.url}-${index}-${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={`link-${link.label}-${link.url}-${index}`}>
|
|
49
49
|
<a
|
|
50
50
|
href={link.url}
|
|
51
51
|
target="_blank"
|
|
@@ -49,7 +49,9 @@ export const StyledLegalLinksDropdownTitle = styled.span`
|
|
|
49
49
|
}
|
|
50
50
|
`
|
|
51
51
|
|
|
52
|
-
export const StyledLegalLinksDropdownContainer = styled.ul
|
|
52
|
+
export const StyledLegalLinksDropdownContainer = styled.ul.withConfig({
|
|
53
|
+
shouldForwardProp: (prop) => prop !== 'openUpward' && prop !== 'isVisible',
|
|
54
|
+
})<ILegalLinksDropdownContainer>`
|
|
53
55
|
position: absolute;
|
|
54
56
|
${props => (props.openUpward ? 'bottom: 100%;' : 'top: 100%;')}
|
|
55
57
|
left: 0%;
|
|
@@ -169,7 +171,9 @@ export const StyledLegalLinksDropdownItem = styled.li<ILegalLinksDropdownItem>`
|
|
|
169
171
|
}
|
|
170
172
|
`
|
|
171
173
|
|
|
172
|
-
export const StyledLegalLinksDropdownIcon = styled.span
|
|
174
|
+
export const StyledLegalLinksDropdownIcon = styled.span.withConfig({
|
|
175
|
+
shouldForwardProp: (prop) => prop !== 'isOpen',
|
|
176
|
+
})<{ isOpen?: boolean }>`
|
|
173
177
|
font-size: 10px;
|
|
174
178
|
display: flex;
|
|
175
179
|
align-items: center;
|