-
Notifications
You must be signed in to change notification settings - Fork 1
Component Hierarchy with Wireframes
Andy Wynkoop edited this page Apr 3, 2018
·
9 revisions
- Root
- App
- NavBar
- LoginPage
- MainPage
- Profile
- App
- NavBar
- Components:
- LoginFormContainer + LoginForm
- NavSearch
- NavLinks
- Components:
Note: Navbar appears on all pages. Other components are rendered inside of either MainPage or profile
- LoginPage
- LoginDetail
- RecentSessionContainer + RecentSession (save on localStorage?)
- SignUpFormContainer + SignUpForm
- route: '/'
If user is logged in, the index page will show the MainPage (news feed) instead.
.
- MainPage
- NewPostFormContainer + NewPostForm
- PostListFeedContainer + PostListFeed
- PostListItemContainer + PostListItem
- PostContent
- PostButtonsContainer + PostButtons
- PostActivityContainer + PostActivity
- PostListItemContainer + PostListItem
.
+ProfilePage
- CoverPhoto
- ProfileNav
- ProfilePicture
- NewPostFormContainer + NewPostForm
- PostListFeedContainer + PostListFeed
- PostListItemContainer + PostListItem
- PostContent
- PostButtonsContainer + PostButtons
- PostActivityContainer + PostActivity
- PostListItemContainer + PostListItem
- ProfileBio - I think profile bio will receive descriptive properties as props - fetched with the user request
- Photos (NYI)
- FriendsContainer + Friends
.
.
Note: Page will render the some of the same components as MainPage, but will only fetch data for the current page's user