Skip to content

Commit edc107e

Browse files
authored
Merge branch 'main' into fix/dockerfile
2 parents e5bb3a2 + 19d7ab7 commit edc107e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

frontend/src/app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import Footer from 'components/Footer'
66

77
import Header from 'components/Header'
88
import './globals.css'
9+
import ScrollToTop from 'components/ScrollToTop'
10+
911
const geistSans = Geist({
1012
variable: '--font-geist-sans',
1113
subsets: ['latin'],
@@ -41,6 +43,7 @@ export default function RootLayout({
4143
<Header />
4244
{children}
4345
<Footer />
46+
<ScrollToTop />
4447
</Providers>
4548
</body>
4649
</html>

frontend/src/components/ScrollToTop.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { faArrowUp } from '@fortawesome/free-solid-svg-icons'
24
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
35
import { useState, useEffect, useCallback } from 'react'

0 commit comments

Comments
 (0)