Closed sarahmonster closed 4 years ago
Oh yeah, I tried to do that, but I got an error about React hooks or something—see https://github.com/octopusthink/ghost-ship/pull/37/commits/d1fe6c5ac7d2852646ba860feb4dca032f4e8475
I'm guessing there's another way you're supposed to do it that I'm not doing?
That commit has you using the hook outside of the component which won't work. I moved it inside, but there are other config values being used and not available from the query so I'm fine just importing the JSON as-is here.
It's fine!
This adds the footer copyright line from the config file to the site footer:
Fix #29.
@tofumatt Can you check to make sure I'm not doing anything I shouldn't really quickly? It looks like I've already merged this to master kinda accidentally, but I tried two approaches here to get the data—the first seemed more "correct", but it didn't work. 😞