Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(slides): add copyright and use current year #569

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions components/Copyright.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const Copyright = () =>
`© Copyright ${new Date().getFullYear()} Nearform Ltd. All Rights Reserved.`

export default Copyright
4 changes: 2 additions & 2 deletions slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lineNumbers: false

<div class="copyright">

© Copyright 2022 NearForm Ltd. All Rights Reserved.
<Copyright />

</div>

Expand Down Expand Up @@ -560,7 +560,7 @@ Complete a custom Hook to query the most popular action movies of the current ye

- Open the network tab of chrome dev tools (or equivalent in your browser of choice)
- Refresh the page
- Notice that the `movies?year=2022` is no longer called
- Notice that the <code>movies?year={{ new Date().getFullYear() }}</code> is no longer called
- The endpoint will only be called if you change the year in the filters

</div>
Expand Down
Loading