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

Commit

Permalink
fix: use section value instead of key in header
Browse files Browse the repository at this point in the history
  • Loading branch information
muZk authored Dec 1, 2021
1 parent 3050c1d commit 2091465
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gatsby-theme-mate/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Headroom from 'react-headroom';
import { Box, Link as RebassLink, Flex, Image } from 'rebass/styled-components';
import styled from 'styled-components';
import Link from './Link';
import { capitalize } from '../utils/string';
import { useHelmetQuery } from '../queries/useHelmetQuery';
import { SECTION } from '../utils/constants';
import { getSectionHref } from '../utils/helpers';
Expand Down Expand Up @@ -37,7 +36,7 @@ const Header = () => {
.map((id) => (
<Box key={id} ml={[2, 3]} color="background" fontSize={[2, 3]}>
<Link href={`#${id}`} tabIndex={0}>
{capitalize(id)}
{SECTION[id]}
</Link>
</Box>
))}
Expand Down

0 comments on commit 2091465

Please sign in to comment.