Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/src/components/AnchorTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { scrollToAnchor, scrollToAnchorWithHistory } from 'utils/scrollToAnchor'
import slugify from 'utils/slugify'

interface AnchorTitleProps {
className?: string
title: string
className?: string
}

const AnchorTitle: React.FC<AnchorTitleProps> = ({ title }) => {
const AnchorTitle: React.FC<AnchorTitleProps> = ({ title, className }) => {
const id = slugify(title)
const href = `#${id}`

Expand Down Expand Up @@ -40,7 +40,7 @@ const AnchorTitle: React.FC<AnchorTitleProps> = ({ title }) => {
}, [id, scrollToElement])

return (
<div id={id} className="relative">
<div id={id} className={`relative ${className || ''}`}>
<div className="group relative flex items-center">
<div className="flex items-center text-2xl font-semibold" data-anchor-title="true">
{title}
Expand Down