frontity / step-by-step-tutorial

Step-by-step tutorial designed to help you learn website development with Frontity.
https://tutorial.frontity.org/
Apache License 2.0
15 stars 10 forks source link

import Loading is missing in the example at "Add a <Loading> component" #11

Closed juanmaguitar closed 3 years ago

juanmaguitar commented 3 years ago

at Add a component the example should be like this

// File: /packages/my-first-theme/src/components/index.js

//
import Loading from "./loading"
 ...
<Main>
  <Switch>
    <Loading when={data.isFetching} />
    <List when={data.isArchive} />
    <Page when={data.isPage} />
    <Post when={data.isPost} />
    <Page when={data.isDestinations} />
  </Switch>
</Main>

// ...
mburridge commented 3 years ago

Fixed this.