We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46efca7 commit cb9242bCopy full SHA for cb9242b
1 file changed
src/App.js
@@ -10,6 +10,7 @@ import { Toaster, toast } from "react-hot-toast";
10
import Navbar from "./component/Navbar";
11
import Footer from "./component/Footer";
12
import ScrollToTop from "./component/ScrollToTop";
13
+import BackToTop from "./component/BackToTop";
14
15
import Home from "./component/Home";
16
import Product from "./component/Product";
@@ -200,6 +201,9 @@ const AppWrapper = () => {
200
201
</Routes>
202
</main>
203
204
+ {/* Floating “Back to top” button (appears after scrolling ~400px) */}
205
+ <BackToTop threshold={400} />
206
+
207
<Footer />
208
</div>
209
</Router>
0 commit comments