~chrono/personal-website-alyx

aa2645ae8ee227ba260a7fee02ca22702df0909a — Michael Gummere 4 months ago f1c3e90
fix sort position
1 files changed, 5 insertions(+), 5 deletions(-)

M components/Footer/Footer.tsx
M components/Footer/Footer.tsx => components/Footer/Footer.tsx +5 -5
@@ 82,6 82,11 @@ export default function Footer() {
    "lastfm",
  ];

  // sort in place by alphabetical order before building the iconsDisplay object
  menus.sort((a, b) => {
    return a.title.localeCompare(b.title);
  });

  menus.forEach((menu) => {
    // filter out the socials that are not enabled
    menu.children = menu.children.filter((child) => {


@@ 132,11 137,6 @@ export default function Footer() {
    return menu.children.length > 0;
  });

  // sort the menus
  menus.sort((a, b) => {
    return a.title.localeCompare(b.title);
  });

  return (
    <div className="flex justify-center items-center">
      <div className="bg-#e9debb flex flex-col md:flex-row w-full max-w-screen-lg gap-8 md:gap-16 px-8 py-8 text-base md:text-xs [text-shadow:_.3px_.75px_0_rgb(255_255_255_/_90%)]">