use default exports
This commit is contained in:
@@ -2,7 +2,7 @@ import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
|
|||||||
import Home from "./pages";
|
import Home from "./pages";
|
||||||
import "./styles/App.css";
|
import "./styles/App.css";
|
||||||
|
|
||||||
function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<Routes>
|
<Routes>
|
||||||
@@ -11,5 +11,3 @@ function App() {
|
|||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
WebsiteRights,
|
WebsiteRights,
|
||||||
} from "./FooterElements";
|
} from "./FooterElements";
|
||||||
|
|
||||||
const Footer = () => {
|
export default function Footer() {
|
||||||
const toggleHome = () => {
|
const toggleHome = () => {
|
||||||
scroll.scrollToTop();
|
scroll.scrollToTop();
|
||||||
};
|
};
|
||||||
@@ -70,6 +70,4 @@ const Footer = () => {
|
|||||||
</FooterContainer>
|
</FooterContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default Footer;
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
UDLLink,
|
UDLLink,
|
||||||
} from "./HeroElements";
|
} from "./HeroElements";
|
||||||
|
|
||||||
const HeroSection = () => {
|
export default function HeroSection() {
|
||||||
const citation = `
|
const citation = `
|
||||||
@book{prince2023understanding,
|
@book{prince2023understanding,
|
||||||
author = "Simon J.D. Prince",
|
author = "Simon J.D. Prince",
|
||||||
@@ -162,6 +162,4 @@ const HeroSection = () => {
|
|||||||
</HeroContent>
|
</HeroContent>
|
||||||
</HeroContainer>
|
</HeroContainer>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default HeroSection;
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
TopLine,
|
TopLine,
|
||||||
} from "./InstructorsElements";
|
} from "./InstructorsElements";
|
||||||
|
|
||||||
const InstructorsSection = () => {
|
export default function InstructorsSection() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<InstructorsContainer lightBg={true} id="Instructors">
|
<InstructorsContainer lightBg={true} id="Instructors">
|
||||||
@@ -497,6 +497,4 @@ const InstructorsSection = () => {
|
|||||||
</InstructorsContainer>
|
</InstructorsContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default InstructorsSection;
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
VideoFrame,
|
VideoFrame,
|
||||||
} from "./MediaElements";
|
} from "./MediaElements";
|
||||||
|
|
||||||
const MediaSection = () => {
|
export default function MediaSection() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MediaContainer lightBg={false} id="Media">
|
<MediaContainer lightBg={false} id="Media">
|
||||||
@@ -123,6 +123,4 @@ const MediaSection = () => {
|
|||||||
</MediaContainer>
|
</MediaContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default MediaSection;
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import {
|
|||||||
TopLine,
|
TopLine,
|
||||||
} from "./MoreElements";
|
} from "./MoreElements";
|
||||||
|
|
||||||
const MoreSection = () => {
|
export default function MoreSection() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MoreContainer lightBg={true} id="More">
|
<MoreContainer lightBg={true} id="More">
|
||||||
@@ -1054,6 +1054,4 @@ const MoreSection = () => {
|
|||||||
</MoreContainer>
|
</MoreContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default MoreSection;
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
NavMenu,
|
NavMenu,
|
||||||
} from "./NavbarElements";
|
} from "./NavbarElements";
|
||||||
|
|
||||||
const Navbar = ({ toggle }) => {
|
export default function NavBar({ toggle }) {
|
||||||
const [scrollNav, setScrollNav] = useState(false);
|
const [scrollNav, setScrollNav] = useState(false);
|
||||||
|
|
||||||
const changeNav = () => {
|
const changeNav = () => {
|
||||||
@@ -101,6 +101,4 @@ const Navbar = ({ toggle }) => {
|
|||||||
</IconContext.Provider>
|
</IconContext.Provider>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default Navbar;
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import img from '../../images/coding.svg'
|
import img from '../../images/coding.svg'
|
||||||
import { Column1, Column2, Heading, Img, ImgWrap, NBLink, NotebookContainer, NotebookRow, NotebookWrapper, Subtitle, TextWrapper, TopLine } from './NotebookElements'
|
import { Column1, Column2, Heading, Img, ImgWrap, NBLink, NotebookContainer, NotebookRow, NotebookWrapper, Subtitle, TextWrapper, TopLine } from './NotebookElements'
|
||||||
|
|
||||||
const NotebookSection = () => {
|
export default function NotebookSection() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NotebookContainer lightBg={false} id='Notebooks'>
|
<NotebookContainer lightBg={false} id='Notebooks'>
|
||||||
@@ -193,5 +193,3 @@ const NotebookSection = () => {
|
|||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default NotebookSection
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function ScrollToTop() {
|
|||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0, {});
|
||||||
}, [pathname]);
|
}, [pathname]);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
SidebarWrapper,
|
SidebarWrapper,
|
||||||
} from "./SidebarElements";
|
} from "./SidebarElements";
|
||||||
|
|
||||||
const Sidebar = ({ isOpen, toggle }) => {
|
export default function Sidebar({ isOpen, toggle }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SidebarContainer isOpen={isOpen} onClick={toggle}>
|
<SidebarContainer isOpen={isOpen} onClick={toggle}>
|
||||||
@@ -33,6 +33,4 @@ const Sidebar = ({ isOpen, toggle }) => {
|
|||||||
</SidebarContainer>
|
</SidebarContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default Sidebar;
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import Navbar from "../components/NavBar";
|
|||||||
import NotebookSection from "../components/Notebooks";
|
import NotebookSection from "../components/Notebooks";
|
||||||
import Sidebar from "../components/Sidebar";
|
import Sidebar from "../components/Sidebar";
|
||||||
|
|
||||||
const Home = () => {
|
export default function Home() {
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
|
|
||||||
const toggle = () => {
|
const toggle = () => {
|
||||||
@@ -27,6 +27,4 @@ const Home = () => {
|
|||||||
<Footer />
|
<Footer />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default Home;
|
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
import ScrollToTop from "../components/ScrollToTop";
|
import ScrollToTop from "../components/ScrollToTop";
|
||||||
import SignIn from "../components/SignIn";
|
import SignIn from "../components/SignIn";
|
||||||
|
|
||||||
const SigninPage = () => {
|
export default function SigninPage() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ScrollToTop />
|
<ScrollToTop />
|
||||||
<SignIn />
|
<SignIn />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default SigninPage;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user