fix(client): do not unmount default layout on navigate
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { Fragment } from 'react';
|
||||
import { Grid, Row, Col, Image } from '@freecodecamp/react-bootstrap';
|
||||
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
|
||||
import {
|
||||
@@ -13,7 +13,6 @@ import { faDatabase } from '@fortawesome/free-solid-svg-icons';
|
||||
import Helmet from 'react-helmet';
|
||||
|
||||
import { Spacer } from '../components/helpers';
|
||||
import Layout from '../components/layouts/Default';
|
||||
import Login from '../components/Header/components/Login';
|
||||
|
||||
import './index.css';
|
||||
@@ -27,7 +26,7 @@ const BigCallToAction = () => (
|
||||
);
|
||||
|
||||
const IndexPage = () => (
|
||||
<Layout disableSettings={true} landingPage={true}>
|
||||
<Fragment>
|
||||
<Helmet>
|
||||
<title>Learn to code | freeCodeCamp.org</title>
|
||||
</Helmet>
|
||||
@@ -246,7 +245,7 @@ const IndexPage = () => (
|
||||
<Spacer />
|
||||
<Spacer />
|
||||
</Grid>
|
||||
</Layout>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
export default IndexPage;
|
||||
|
||||
Reference in New Issue
Block a user