Skip to content

Commit

Permalink
fix(vth): theme sorting in navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjong committed Dec 13, 2023
1 parent 106c71f commit c4fed8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as build
FROM node:18.18-alpine as build
# Installing libvips-dev for sharp Compatibility
RUN apk update && apk add libc6-compat --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev > /dev/null 2>&1
RUN apk update && apk add bash
Expand Down
4 changes: 4 additions & 0 deletions apps/vth-frontend/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ const RootLayout = async ({ children, params: { locale } }: LayoutProps) => {

const navigationPages: PageData[] = data?.navigationPages?.data;

navigationPages?.sort((a, b) => {
return a.attributes.title.localeCompare(b.attributes.title);
});

const navListData = navigationPages?.map((navigationPage) => {
return {
title: navigationPage.attributes.title,
Expand Down

0 comments on commit c4fed8b

Please sign in to comment.