Skip to content

Commit

Permalink
Fix issue asyncapi#475: Added a global scrollToTop button
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolgupta2015 committed Jan 14, 2025
1 parent c33c344 commit 57bb015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
import Navbar from '../components/Navbar/navbar';
import Footer from '../components/Footer/footer';
import ScrollToTopButton from '../components/Scroll-button/ScrollToTop';
import { useState, useEffect } from 'react';

function MyApp({ Component, pageProps }) {
Expand All @@ -19,8 +20,8 @@ function MyApp({ Component, pageProps }) {
return (
<div>
<Navbar />

<Component {...pageProps} />
<ScrollToTopButton/>
<Footer />
</div>
);
Expand Down
1 change: 1 addition & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import speakers from '../config/speakers.json';
import Link from 'next/link';
import Button from '../components/Buttons/button';
import Dropdown from '../components/Dropdown/dropdown';
import ScrollToTop from '../components/Scroll-button/ScrollToTop';

export default function Home() {
const isTablet = useMediaQuery({ maxWidth: '1118px' });
Expand Down

0 comments on commit 57bb015

Please sign in to comment.