File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
apps/juxtaposition-ui/src/services/juxt-web/views/web Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -251,14 +251,20 @@ export function WebUserPageView(props: UserPageViewProps): ReactNode {
251251 )
252252 : null }
253253 </ div >
254- < div className = "buttons tabs" >
255- < a id = "tab-header-post" className = { props . selectedTab === 0 ? 'selected' : '' } href = { props . baseLink } > < T k = "user_page.posts" /> </ a >
256- < a id = "tab-header-friends" className = { props . selectedTab === 1 ? 'selected' : '' } href = { props . baseLink + 'friends' } > < T k = "user_page.friends" /> </ a >
257- < a id = "tab-header-following" className = { props . selectedTab === 2 ? 'selected' : '' } href = { props . baseLink + 'following' } > < T k = "user_page.following" /> </ a >
258- < a id = "tab-header-followers" className = { props . selectedTab === 3 ? 'selected' : '' } href = { props . baseLink + 'followers' } > < T k = "user_page.followers" /> </ a >
259- < a id = "tab-header-yeahs" className = { props . selectedTab === 4 ? 'selected' : '' } href = { props . baseLink + 'yeahs' } > < T k = "global.yeahs" /> </ a >
260- </ div >
261- { props . children }
254+ { isUserDataViewable
255+ ? (
256+ < >
257+ < div className = "buttons tabs" >
258+ < a id = "tab-header-post" className = { props . selectedTab === 0 ? 'selected' : '' } href = { props . baseLink } > < T k = "user_page.posts" /> </ a >
259+ < a id = "tab-header-friends" className = { props . selectedTab === 1 ? 'selected' : '' } href = { props . baseLink + 'friends' } > < T k = "user_page.friends" /> </ a >
260+ < a id = "tab-header-following" className = { props . selectedTab === 2 ? 'selected' : '' } href = { props . baseLink + 'following' } > < T k = "user_page.following" /> </ a >
261+ < a id = "tab-header-followers" className = { props . selectedTab === 3 ? 'selected' : '' } href = { props . baseLink + 'followers' } > < T k = "user_page.followers" /> </ a >
262+ < a id = "tab-header-yeahs" className = { props . selectedTab === 4 ? 'selected' : '' } href = { props . baseLink + 'yeahs' } > < T k = "global.yeahs" /> </ a >
263+ </ div >
264+ { props . children }
265+ </ >
266+ )
267+ : null }
262268 </ WebWrapper >
263269 < WebReportModalView />
264270 </ WebRoot >
You can’t perform that action at this time.
0 commit comments