Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix(COR-1917): Fixed automatic section open on letter click (#4995)
Browse files Browse the repository at this point in the history
  • Loading branch information
VWSCoronaDashboard30 authored Mar 4, 2024
1 parent 849532e commit 34d949d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/app/src/pages/gemeente/lijstweergave.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import _ from 'lodash';
import { Anchor, Heading } from '~/components/typography';
import { Box } from '~/components/base';
import { CollapsibleSection } from '~/components';
import { colors, gmData, MunicipalityInfo } from '@corona-dashboard/common';
import { createGetStaticProps, StaticProps } from '~/static-props/create-get-static-props';
import { getLastGeneratedDate } from '~/static-props/get-data';
import { GmLayout, Layout } from '~/domain/layout';
import { Heading } from '~/components/typography';
import { Link } from '~/utils/link';
import { Map } from '@corona-dashboard/icons';
import { Menu, MenuItemLink } from '~/components/aside/menu';
Expand Down Expand Up @@ -83,9 +83,7 @@ const MunicipalityListOverview = (props: StaticProps<typeof getStaticProps>) =>
{Object.entries(MunicipalityLetter).map(([letterKey, letterValue], index) => (
<Fragment key={index + letterKey}>
<StyledLetter textAlign="center">
<Link href={`#${letterValue}`} passHref>
{letterValue}
</Link>
<Anchor href={`#${letterValue}`}>{letterValue}</Anchor>
</StyledLetter>
</Fragment>
))}
Expand Down

0 comments on commit 34d949d

Please sign in to comment.