Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 982 Bytes

File metadata and controls

24 lines (19 loc) · 982 Bytes

Add a link to the Footer

The project is set up to import the Footer component from @magento/venia-concept. Let replace it with our own by copying the Footer component from Venia to our own storefront.
cp -R node_modules/\@magento/venia-concept/src/components/Footer src/components/

Next in src/components/Main/main.js change the import statement for the footer to:
import Footer from 'src/components/Footer';

Not the Project will load our local Footer component. We need to add React's Link element which we get from src/drivers:
import { Link } from 'src/drivers';

Finally add the below JSX to render the Link for the foo.html static route:

<div className={classes.tile}>
    <p className={classes.tileBody}>
        <Link to="/foo.html">Foo Demo Page</Link>
    </p>
</div>