Skip to content

Commit 03cc813

Browse files
committed
docs: Fixed Footer wrong styles
1 parent 4ef9ff7 commit 03cc813

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/src/components/Wrapper/components/FooterLinks.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class FooterLinks extends React.Component<FooterLinksProps> {
3131
style={styles.root}
3232
>
3333
<p style={styles.title}>{title}</p>
34-
<div style={{ margin: "8px 0" }}>
34+
<div style={styles.links}>
3535
{links.map((link, index) => (
3636
<a
3737
style={styles.link}
@@ -48,11 +48,7 @@ export default class FooterLinks extends React.Component<FooterLinksProps> {
4848
}
4949
}
5050

51-
function getStyles(footerLinks: FooterLinks): {
52-
root?: React.CSSProperties;
53-
title?: React.CSSProperties;
54-
link?: React.CSSProperties;
55-
} {
51+
function getStyles(footerLinks: FooterLinks) {
5652
const {
5753
context: { theme },
5854
props: { style }
@@ -69,14 +65,19 @@ function getStyles(footerLinks: FooterLinks): {
6965
fontSize: 20,
7066
fontWeight: "lighter",
7167
color: "inherit"
72-
},
68+
} as React.CSSProperties,
69+
links: prefixStyle({
70+
margin: "8px 0",
71+
display: "flex",
72+
flexDirection: "column"
73+
}),
7374
link: {
7475
display: "inline-block",
7576
fontSize: 12,
7677
margin: "12px 0",
7778
fontWeight: "lighter",
7879
color: "inherit",
7980
textDecoration: "none"
80-
}
81+
} as React.CSSProperties
8182
};
8283
}

0 commit comments

Comments
 (0)