Skip to content

Commit af7a7e5

Browse files
chore: handle unmount
1 parent 7b31362 commit af7a7e5

File tree

6 files changed

+12
-149
lines changed

6 files changed

+12
-149
lines changed

apps/sim/app/(home)/components/features/features.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { AnimatePresence, type MotionValue, motion, useScroll, useTransform } fr
55
import Image from 'next/image'
66
import Link from 'next/link'
77
import { Badge, ChevronDown } from '@/components/emcn'
8-
import { FeaturesPreview } from '@/app/(home)/components/features/components/features-preview'
98
import { hexToRgba } from '@/lib/core/utils/formatting'
9+
import { FeaturesPreview } from '@/app/(home)/components/features/components/features-preview'
1010

1111
const FEATURE_TABS = [
1212
{

apps/sim/app/(home)/components/templates/templates.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { useRouter } from 'next/navigation'
88
import { Badge, ChevronDown } from '@/components/emcn'
99
import { LandingWorkflowSeedStorage } from '@/lib/core/utils/browser-storage'
1010
import { cn } from '@/lib/core/utils/cn'
11-
import { TEMPLATE_WORKFLOWS } from '@/app/(home)/components/templates/template-workflows'
1211
import { hexToRgba } from '@/lib/core/utils/formatting'
12+
import { TEMPLATE_WORKFLOWS } from '@/app/(home)/components/templates/template-workflows'
1313

1414
const logger = createLogger('LandingTemplates')
1515

apps/sim/app/(landing)/blog/[slug]/table-of-contents.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
257257
mass: 0.8,
258258
})
259259

260+
useEffect(() => {
261+
return () => {
262+
document.body.removeAttribute('data-toc-rail-hover')
263+
264+
const nav = navRef.current
265+
if (nav) delete nav.dataset.railHover
266+
}
267+
}, [])
268+
260269
const registerLine = useCallback((id: string, node: HTMLDivElement | null) => {
261270
if (node) {
262271
lineRefs.current.set(id, node)

apps/sim/app/(landing)/blog/category-list.tsx

Lines changed: 0 additions & 100 deletions
This file was deleted.

apps/sim/app/(landing)/blog/search-input.tsx

Lines changed: 0 additions & 46 deletions
This file was deleted.

apps/sim/app/(landing)/blog/studio-sidebar-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useMemo } from 'react'
44
import { useReducedMotion } from 'framer-motion'
55
import { Search } from 'lucide-react'
66
import { cn } from '@/lib/core/utils/cn'
7-
import { CATEGORIES, getPrimaryCategory } from '@/app/(landing)/blog/tag-colors'
87
import { hexToRgba } from '@/lib/core/utils/formatting'
8+
import { CATEGORIES, getPrimaryCategory } from '@/app/(landing)/blog/tag-colors'
99

1010
const LEFT_WALL_CLIP = 'polygon(0 8px, 100% 0, 100% 100%, 0 100%)'
1111
const BOTTOM_WALL_CLIP = 'polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%)'

0 commit comments

Comments
 (0)