diff --git a/src/components/client/faq/FaqPage.tsx b/src/components/client/faq/FaqPage.tsx
index ff60fe513..790efd9b8 100644
--- a/src/components/client/faq/FaqPage.tsx
+++ b/src/components/client/faq/FaqPage.tsx
@@ -6,7 +6,6 @@ import React, { useMemo, useState } from 'react'
import Layout from 'components/client/layout/Layout'
import ContactUs from './ContactUs'
-import ScrollToTop from './ScrollToTop'
import VerticalTabs from './VerticalTabs'
import ExpandableListItem from './ExpandableListItem'
import {
@@ -81,7 +80,6 @@ export default function FaqPage({ section }: Props) {
-
)
}
diff --git a/src/components/client/layout/Layout.tsx b/src/components/client/layout/Layout.tsx
index cd5683da3..3beae5dbc 100644
--- a/src/components/client/layout/Layout.tsx
+++ b/src/components/client/layout/Layout.tsx
@@ -11,6 +11,7 @@ import DetailsModal from 'components/admin/modal/DetailsModal'
import AppNavBar from './AppNavBar'
import MobileNav from './nav/MobileNav/MobileNav'
+import ScrollToTop from './ScrollToTop'
const createPageTitle = (suffix: string, title?: string) => {
if (title) {
@@ -135,6 +136,7 @@ export default function Layout({
{!hideFooter && }
+
)
}
diff --git a/src/components/client/faq/ScrollToTop.tsx b/src/components/client/layout/ScrollToTop.tsx
similarity index 69%
rename from src/components/client/faq/ScrollToTop.tsx
rename to src/components/client/layout/ScrollToTop.tsx
index 4c9d5ad0f..f1da36615 100644
--- a/src/components/client/faq/ScrollToTop.tsx
+++ b/src/components/client/layout/ScrollToTop.tsx
@@ -1,4 +1,5 @@
import React, { useEffect, useState } from 'react'
+
import { ArrowCircleUp } from '@mui/icons-material'
import { Box } from '@mui/material'
@@ -8,7 +9,7 @@ const ScrollToTop = () => {
const [isVisible, setIsVisible] = useState(false)
const toggleVisibility = () => {
- if (window.pageYOffset > 300) {
+ if (window.pageYOffset > 700) {
setIsVisible(true)
} else {
setIsVisible(false)
@@ -31,10 +32,19 @@ const ScrollToTop = () => {