Fix footer in master (patch)

- fix invalid <li> nesting
This commit is contained in:
infinite-persistence 2021-06-08 12:48:15 +08:00
parent 5eae88b553
commit 46d258c439
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -80,18 +80,20 @@ const sections = [
export default function Footer() {
return (
<footer className="footer">
<ul className="navigation__tertiary footer__links bright ul--no-style">
<ul className="navigation__tertiary footer__links ul--no-style">
{sections.map(({ name, links }) => {
return (
<li key={name} className="footer__section">
<div className="footer__section-title">{__(name)}</div>
{links.map(({ label, link, navigate }) => {
return (
<li key={label}>
<Button className="footer__link" label={__(label)} href={link} navigate={navigate} />
</li>
);
})}
<ul className="ul--no-style">
<div className="footer__section-title">{__(name)}</div>
{links.map(({ label, link, navigate }) => {
return (
<li key={label}>
<Button className="footer__link" label={__(label)} href={link} navigate={navigate} />
</li>
);
})}
</ul>
</li>
);
})}