You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new folder called "nonprofits" in the components folder and create a layout page (NonprofitPageLayout.tsx) and main page (NonprofitPage.tsx)
In NonprofitPageLayout create a component that wraps the CoreNavBar component (components/core/navbar) w/ FullPageLayout. This should be very similar to how DonationPageLayout is setup except you won't need the additional styling for the background and background image, and the layout page shouldn't accept any props for now.
In NonprofitPage create a component that just consists of the NonprofitPageLayout component. As props, this page should just accept a nonprofit object (look at DonationPage).
Make sure your component actually renders by adding it to the nonprofit page (pages/nonprofits/[id.tsx]).
All these steps are really similar to what we do in DMS, so look the pages/donation/[id.tsx], DonationPage.tsx, ... for guidance.
All these steps are really similar to what we do in DMS, so look the pages/donation/[id.tsx], DonationPage.tsx, ... for guidance.