Skip to content

Commit 2275a73

Browse files
committed
feat: ScrollToTop components module Add
1 parent 2c03cbd commit 2275a73

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/landing/src/app/(detail)/components

apps/landing/src/app/(detail)/components/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { Box, Flex } from '@devup-ui/react'
22

33
import { RightIndex } from '../docs/RightIndex'
44
import { LeftMenu } from './LeftMenu'
5+
import { ScrollToTop } from './ScrollToTop'
56

67
export default function Layout({
78
children,
89
}: Readonly<{ children: React.ReactNode }>) {
910
return (
1011
<>
12+
<ScrollToTop />
1113
<Flex maxW="1920px" minH="calc(100vh - 500px)" mx="auto">
1214
<Box display={['none', null, 'initial']} p="20px 16px" w="220px">
1315
<Box pos="sticky" top={['70px', null, '90px']}>

0 commit comments

Comments
 (0)