Skip to content

Commit

Permalink
Fix hide activities (#265)
Browse files Browse the repository at this point in the history
* Fix hide activities

* chore: Auto-fix lint errors

* Trigger ci

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mauriciabad and github-actions[bot] authored Mar 26, 2024
1 parent 127916a commit 24672b7
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/app/[locale]/(app)/explore/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@ const ExplorePage: FC<LocaleRouteParams> = async ({ params }) => {
locale: onlyTranslatableLocales(locale),
})

const groups: CategoryGroupListItem[] = categoryGroups.map((group) => ({
...group,
categories: group.placeCategories,
type: 'place',
}))

groups
const groups: CategoryGroupListItem[] = categoryGroups
.filter((group) => group.id !== 2) // TODO: Temporarily disabled "Punts d'oci i esport naturals". Enable it later.
.splice(1, 0, {
name: t('category-groups.routes'),
id: 9999999,
order: null,
categories: routeCategories.map((category) => ({
category,
highlight: [1, 2, 3, 5].includes(category.id),
})),
type: 'route',
})
.map((group) => ({
...group,
categories: group.placeCategories,
type: 'place',
}))

groups.splice(1, 0, {
name: t('category-groups.routes'),
id: 9999999,
order: null,
categories: routeCategories.map((category) => ({
category,
highlight: [1, 2, 3, 5].includes(category.id),
})),
type: 'route',
})

return (
<div className="pt-6">
Expand Down

0 comments on commit 24672b7

Please sign in to comment.