Refactor to pull all text enteries into single location

This commit is contained in:
2026-02-17 01:10:31 +00:00
parent 6605966fab
commit 83b327d58e
36 changed files with 954 additions and 1443 deletions
@@ -3,6 +3,7 @@ import { motion, AnimatePresence } from 'framer-motion'
import { ChevronRight } from 'lucide-react'
import { useDetailPanel } from '@/contexts/DetailPanelContext'
import { timelineEntities, timelineConsultations } from '@/data/timeline'
import { getExperienceEducationUICopy } from '@/lib/profile-content'
import type { TimelineEntity } from '@/types/pmr'
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
@@ -33,8 +34,9 @@ function TimelineInterventionItem({
onViewFull,
onHighlight,
}: TimelineInterventionItemProps) {
const experienceEducationCopy = getExperienceEducationUICopy()
const isEducation = entity.kind === 'education'
const interventionLabel = isEducation ? 'Education' : 'Employment'
const interventionLabel = isEducation ? experienceEducationCopy.educationLabel : experienceEducationCopy.employmentLabel
const handleKeyDown = useCallback(
(e: React.KeyboardEvent) => {
@@ -284,7 +286,7 @@ function TimelineInterventionItem({
e.currentTarget.style.opacity = '1'
}}
>
View full record
{experienceEducationCopy.viewFullRecordLabel}
<ChevronRight size={12} />
</button>
</div>