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

Remove direct sortedBlogPosts import from CommandMenu.tsx #299

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

AVGVSTVS96
Copy link
Owner

@AVGVSTVS96 AVGVSTVS96 commented Apr 30, 2024

  • Remove direct sortedBlogPosts import from CommandMenu.tsx

  • Use prop instead to pass sortedBlogPosts to CommandMenu in ReactHeader and NavBar components

  • Update type in getSortedBlogPosts

  • Array is used when assigning type to posts, rather than on posts within the const declaration

Use prop instead to pass `sortedBlogPosts` to `CommandMenu` in `ReactHeader` and `NavBar` components
Array is used when assigning type to posts, rather than on posts within the const declaration
Copy link

cloudflare-workers-and-pages bot commented Apr 30, 2024

Deploying astrosite with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0f73c1f
Status: ✅  Deploy successful!
Preview URL: https://d401aae6.astrosite-aid.pages.dev
Branch Preview URL: https://usepropforsortedblogposts.astrosite-aid.pages.dev

View logs

Copy link

codesandbox bot commented Apr 30, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @AVGVSTVS96 and the rest of your teammates on Graphite Graphite

@AVGVSTVS96 AVGVSTVS96 marked this pull request as ready for review April 30, 2024 22:45
@AVGVSTVS96 AVGVSTVS96 merged commit b890e1a into master Apr 30, 2024
1 check passed
@AVGVSTVS96 AVGVSTVS96 deleted the usePropForSortedBlogPosts branch May 3, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant