-
Notifications
You must be signed in to change notification settings - Fork 0
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
NavBar extended middleware #47
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking awesome! Just a few small changes to implement, which will be easier once Edward and Lillian's pr gets merged as well. Also, once it gets merged, make sure the All buttons for the Search and Principles dropdowns route to the appropriate pages.
} | ||
|
||
const port = process.env.DEV_PORT || 3001; | ||
const CATEGORIES_URL = `http://localhost:${port}/api/categories`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to have this url pull from a .env so it works in deployment. Lillian and Edwards pr has a similar file though, maybe you can just use this one once their pr is merged
})(); | ||
}, []); | ||
|
||
const generalPrinciples = items.filter(category => category.type === 'General Principle'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Pratyush! Other than the changes that Anthony requested, everything looks clean and great!
Tracking Info
Resolves #37
Changes
Added middleware to make general categories pull data from backend. Also added blank component template for each sub-category.
Testing
Checked dev tools to make sure data received from backend, tested admin on localhost to see frontend changes
Confirmation of Change