@amityco/react-native-social-uikit 4.0.0 → 4.0.1-183811fd.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/lib/commonjs/core/assets/icons/index.js +8 -0
  2. package/lib/commonjs/core/assets/icons/index.js.map +1 -1
  3. package/lib/commonjs/core/assets/icons/visitorLimit.js +26 -0
  4. package/lib/commonjs/core/assets/icons/visitorLimit.js.map +1 -0
  5. package/lib/commonjs/core/constants/index.js +11 -1
  6. package/lib/commonjs/core/constants/index.js.map +1 -1
  7. package/lib/commonjs/core/hooks/useAuth.js +6 -2
  8. package/lib/commonjs/core/hooks/useAuth.js.map +1 -1
  9. package/lib/commonjs/core/providers/AmityUIKitProvider.js.map +1 -1
  10. package/lib/commonjs/core/providers/AuthProvider.js +40 -16
  11. package/lib/commonjs/core/providers/AuthProvider.js.map +1 -1
  12. package/lib/commonjs/core/routes/AmityUIKitNavigator.js +23 -1
  13. package/lib/commonjs/core/routes/AmityUIKitNavigator.js.map +1 -1
  14. package/lib/commonjs/social/components/Social/CommentList/CommentList.js +6 -1
  15. package/lib/commonjs/social/components/Social/CommentList/CommentList.js.map +1 -1
  16. package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js +14 -3
  17. package/lib/commonjs/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
  18. package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js +10 -2
  19. package/lib/commonjs/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
  20. package/lib/commonjs/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +6 -1
  21. package/lib/commonjs/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
  22. package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +13 -3
  23. package/lib/commonjs/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
  24. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js +10 -2
  25. package/lib/commonjs/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
  26. package/lib/commonjs/social/features/feed/components/TopNavigation/TopNavigation.js +5 -1
  27. package/lib/commonjs/social/features/feed/components/TopNavigation/TopNavigation.js.map +1 -1
  28. package/lib/commonjs/social/features/post/Detail/index.js +6 -2
  29. package/lib/commonjs/social/features/post/Detail/index.js.map +1 -1
  30. package/lib/commonjs/social/features/post/components/Content/Content.js +5 -1
  31. package/lib/commonjs/social/features/post/components/Content/Content.js.map +1 -1
  32. package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js +16 -10
  33. package/lib/commonjs/social/features/post/components/EngagementActions/Components/DetailStyle.js.map +1 -1
  34. package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js +17 -9
  35. package/lib/commonjs/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
  36. package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js +6 -1
  37. package/lib/commonjs/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
  38. package/lib/commonjs/social/features/visitor/UsageLimit/UsageLimit.js +46 -0
  39. package/lib/commonjs/social/features/visitor/UsageLimit/UsageLimit.js.map +1 -0
  40. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/index.js +13 -0
  41. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/index.js.map +1 -0
  42. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/useUsageLimit.js +54 -0
  43. package/lib/commonjs/social/features/visitor/UsageLimit/hooks/useUsageLimit.js.map +1 -0
  44. package/lib/commonjs/social/features/visitor/UsageLimit/index.js +13 -0
  45. package/lib/commonjs/social/features/visitor/UsageLimit/index.js.map +1 -0
  46. package/lib/commonjs/social/features/visitor/UsageLimit/styles.js +52 -0
  47. package/lib/commonjs/social/features/visitor/UsageLimit/styles.js.map +1 -0
  48. package/lib/commonjs/social/hooks/index.js +22 -0
  49. package/lib/commonjs/social/hooks/index.js.map +1 -1
  50. package/lib/commonjs/social/hooks/useCommunityEngagementBehavior.js +57 -0
  51. package/lib/commonjs/social/hooks/useCommunityEngagementBehavior.js.map +1 -0
  52. package/lib/commonjs/social/hooks/useGlobalBehavior.js +44 -0
  53. package/lib/commonjs/social/hooks/useGlobalBehavior.js.map +1 -0
  54. package/lib/commonjs/social/hooks/usePostPermission.js +4 -2
  55. package/lib/commonjs/social/hooks/usePostPermission.js.map +1 -1
  56. package/lib/commonjs/social/hooks/useStoryPermission.js +3 -2
  57. package/lib/commonjs/social/hooks/useStoryPermission.js.map +1 -1
  58. package/lib/commonjs/social/providers/BehaviourProvider.js +1 -0
  59. package/lib/commonjs/social/providers/BehaviourProvider.js.map +1 -1
  60. package/lib/commonjs/social/screens/SocialHomePage/index.js +12 -5
  61. package/lib/commonjs/social/screens/SocialHomePage/index.js.map +1 -1
  62. package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +11 -0
  63. package/lib/commonjs/social/screens/VisitorUsageLimit/VisitorUsageLimit.js.map +1 -0
  64. package/lib/commonjs/social/screens/VisitorUsageLimit/index.js +13 -0
  65. package/lib/commonjs/social/screens/VisitorUsageLimit/index.js.map +1 -0
  66. package/lib/module/core/assets/icons/index.js +1 -0
  67. package/lib/module/core/assets/icons/index.js.map +1 -1
  68. package/lib/module/core/assets/icons/visitorLimit.js +19 -0
  69. package/lib/module/core/assets/icons/visitorLimit.js.map +1 -0
  70. package/lib/module/core/constants/index.js +10 -0
  71. package/lib/module/core/constants/index.js.map +1 -1
  72. package/lib/module/core/hooks/useAuth.js +6 -2
  73. package/lib/module/core/hooks/useAuth.js.map +1 -1
  74. package/lib/module/core/providers/AmityUIKitProvider.js.map +1 -1
  75. package/lib/module/core/providers/AuthProvider.js +40 -16
  76. package/lib/module/core/providers/AuthProvider.js.map +1 -1
  77. package/lib/module/core/routes/AmityUIKitNavigator.js +23 -1
  78. package/lib/module/core/routes/AmityUIKitNavigator.js.map +1 -1
  79. package/lib/module/social/components/Social/CommentList/CommentList.js +6 -1
  80. package/lib/module/social/components/Social/CommentList/CommentList.js.map +1 -1
  81. package/lib/module/social/components/Social/CommentListItem/CommentListItem.js +14 -3
  82. package/lib/module/social/components/Social/CommentListItem/CommentListItem.js.map +1 -1
  83. package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js +10 -2
  84. package/lib/module/social/components/legacy/Social/ReplyCommentList/index.js.map +1 -1
  85. package/lib/module/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js +7 -2
  86. package/lib/module/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.js.map +1 -1
  87. package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js +14 -4
  88. package/lib/module/social/features/comment/components/PostComment/CommentListItem/CommentListItem.js.map +1 -1
  89. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js +10 -2
  90. package/lib/module/social/features/comment/components/PostComment/ReplyCommentList/index.js.map +1 -1
  91. package/lib/module/social/features/feed/components/TopNavigation/TopNavigation.js +5 -1
  92. package/lib/module/social/features/feed/components/TopNavigation/TopNavigation.js.map +1 -1
  93. package/lib/module/social/features/post/Detail/index.js +6 -2
  94. package/lib/module/social/features/post/Detail/index.js.map +1 -1
  95. package/lib/module/social/features/post/components/Content/Content.js +5 -1
  96. package/lib/module/social/features/post/components/Content/Content.js.map +1 -1
  97. package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js +17 -11
  98. package/lib/module/social/features/post/components/EngagementActions/Components/DetailStyle.js.map +1 -1
  99. package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js +18 -10
  100. package/lib/module/social/features/post/components/EngagementActions/Components/FeedStyle.js.map +1 -1
  101. package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js +7 -2
  102. package/lib/module/social/features/user/Profile/components/Header/hooks/useHeader.js.map +1 -1
  103. package/lib/module/social/features/visitor/UsageLimit/UsageLimit.js +40 -0
  104. package/lib/module/social/features/visitor/UsageLimit/UsageLimit.js.map +1 -0
  105. package/lib/module/social/features/visitor/UsageLimit/hooks/index.js +2 -0
  106. package/lib/module/social/features/visitor/UsageLimit/hooks/index.js.map +1 -0
  107. package/lib/module/social/features/visitor/UsageLimit/hooks/useUsageLimit.js +47 -0
  108. package/lib/module/social/features/visitor/UsageLimit/hooks/useUsageLimit.js.map +1 -0
  109. package/lib/module/social/features/visitor/UsageLimit/index.js +2 -0
  110. package/lib/module/social/features/visitor/UsageLimit/index.js.map +1 -0
  111. package/lib/module/social/features/visitor/UsageLimit/styles.js +45 -0
  112. package/lib/module/social/features/visitor/UsageLimit/styles.js.map +1 -0
  113. package/lib/module/social/hooks/index.js +2 -0
  114. package/lib/module/social/hooks/index.js.map +1 -1
  115. package/lib/module/social/hooks/useCommunityEngagementBehavior.js +50 -0
  116. package/lib/module/social/hooks/useCommunityEngagementBehavior.js.map +1 -0
  117. package/lib/module/social/hooks/useGlobalBehavior.js +36 -0
  118. package/lib/module/social/hooks/useGlobalBehavior.js.map +1 -0
  119. package/lib/module/social/hooks/usePostPermission.js +4 -2
  120. package/lib/module/social/hooks/usePostPermission.js.map +1 -1
  121. package/lib/module/social/hooks/useStoryPermission.js +3 -2
  122. package/lib/module/social/hooks/useStoryPermission.js.map +1 -1
  123. package/lib/module/social/providers/BehaviourProvider.js +1 -0
  124. package/lib/module/social/providers/BehaviourProvider.js.map +1 -1
  125. package/lib/module/social/screens/SocialHomePage/index.js +13 -6
  126. package/lib/module/social/screens/SocialHomePage/index.js.map +1 -1
  127. package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js +5 -0
  128. package/lib/module/social/screens/VisitorUsageLimit/VisitorUsageLimit.js.map +1 -0
  129. package/lib/module/social/screens/VisitorUsageLimit/index.js +2 -0
  130. package/lib/module/social/screens/VisitorUsageLimit/index.js.map +1 -0
  131. package/lib/typescript/core/assets/icons/index.d.ts +1 -0
  132. package/lib/typescript/core/assets/icons/index.d.ts.map +1 -1
  133. package/lib/typescript/core/assets/icons/visitorLimit.d.ts +3 -0
  134. package/lib/typescript/core/assets/icons/visitorLimit.d.ts.map +1 -0
  135. package/lib/typescript/core/constants/index.d.ts +10 -0
  136. package/lib/typescript/core/constants/index.d.ts.map +1 -1
  137. package/lib/typescript/core/hooks/useAuth.d.ts.map +1 -1
  138. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts +2 -1
  139. package/lib/typescript/core/providers/AmityUIKitProvider.d.ts.map +1 -1
  140. package/lib/typescript/core/providers/AuthProvider.d.ts.map +1 -1
  141. package/lib/typescript/core/routes/AmityUIKitNavigator.d.ts.map +1 -1
  142. package/lib/typescript/core/types/auth.d.ts +2 -0
  143. package/lib/typescript/core/types/auth.d.ts.map +1 -1
  144. package/lib/typescript/core/types/behaviour.d.ts +6 -0
  145. package/lib/typescript/core/types/behaviour.d.ts.map +1 -1
  146. package/lib/typescript/social/components/Social/CommentList/CommentList.d.ts.map +1 -1
  147. package/lib/typescript/social/components/Social/CommentListItem/CommentListItem.d.ts.map +1 -1
  148. package/lib/typescript/social/components/legacy/Social/ReplyCommentList/index.d.ts.map +1 -1
  149. package/lib/typescript/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.d.ts.map +1 -1
  150. package/lib/typescript/social/features/comment/components/PostComment/CommentListItem/CommentListItem.d.ts.map +1 -1
  151. package/lib/typescript/social/features/comment/components/PostComment/ReplyCommentList/index.d.ts.map +1 -1
  152. package/lib/typescript/social/features/feed/components/TopNavigation/TopNavigation.d.ts.map +1 -1
  153. package/lib/typescript/social/features/post/Detail/index.d.ts.map +1 -1
  154. package/lib/typescript/social/features/post/components/Content/Content.d.ts.map +1 -1
  155. package/lib/typescript/social/features/post/components/EngagementActions/Components/DetailStyle.d.ts.map +1 -1
  156. package/lib/typescript/social/features/post/components/EngagementActions/Components/FeedStyle.d.ts.map +1 -1
  157. package/lib/typescript/social/features/user/Profile/components/Header/hooks/useHeader.d.ts.map +1 -1
  158. package/lib/typescript/social/features/visitor/UsageLimit/UsageLimit.d.ts +2 -0
  159. package/lib/typescript/social/features/visitor/UsageLimit/UsageLimit.d.ts.map +1 -0
  160. package/lib/typescript/social/features/visitor/UsageLimit/hooks/index.d.ts +2 -0
  161. package/lib/typescript/social/features/visitor/UsageLimit/hooks/index.d.ts.map +1 -0
  162. package/lib/typescript/social/features/visitor/UsageLimit/hooks/useUsageLimit.d.ts +40 -0
  163. package/lib/typescript/social/features/visitor/UsageLimit/hooks/useUsageLimit.d.ts.map +1 -0
  164. package/lib/typescript/social/features/visitor/UsageLimit/index.d.ts +2 -0
  165. package/lib/typescript/social/features/visitor/UsageLimit/index.d.ts.map +1 -0
  166. package/lib/typescript/social/features/visitor/UsageLimit/styles.d.ts +40 -0
  167. package/lib/typescript/social/features/visitor/UsageLimit/styles.d.ts.map +1 -0
  168. package/lib/typescript/social/hooks/index.d.ts +2 -0
  169. package/lib/typescript/social/hooks/index.d.ts.map +1 -1
  170. package/lib/typescript/social/hooks/useCommunityEngagementBehavior.d.ts +18 -0
  171. package/lib/typescript/social/hooks/useCommunityEngagementBehavior.d.ts.map +1 -0
  172. package/lib/typescript/social/hooks/useGlobalBehavior.d.ts +16 -0
  173. package/lib/typescript/social/hooks/useGlobalBehavior.d.ts.map +1 -0
  174. package/lib/typescript/social/hooks/usePostPermission.d.ts.map +1 -1
  175. package/lib/typescript/social/hooks/useStoryPermission.d.ts.map +1 -1
  176. package/lib/typescript/social/providers/BehaviourProvider.d.ts.map +1 -1
  177. package/lib/typescript/social/screens/SocialHomePage/index.d.ts.map +1 -1
  178. package/lib/typescript/social/screens/VisitorUsageLimit/VisitorUsageLimit.d.ts +2 -0
  179. package/lib/typescript/social/screens/VisitorUsageLimit/VisitorUsageLimit.d.ts.map +1 -0
  180. package/lib/typescript/social/screens/VisitorUsageLimit/index.d.ts +2 -0
  181. package/lib/typescript/social/screens/VisitorUsageLimit/index.d.ts.map +1 -0
  182. package/package.json +3 -3
  183. package/src/core/assets/icons/index.ts +1 -0
  184. package/src/core/assets/icons/visitorLimit.tsx +19 -0
  185. package/src/core/constants/index.ts +15 -0
  186. package/src/core/hooks/useAuth.ts +4 -0
  187. package/src/core/providers/AmityUIKitProvider.tsx +2 -1
  188. package/src/core/providers/AuthProvider.tsx +35 -11
  189. package/src/core/routes/AmityUIKitNavigator.tsx +26 -1
  190. package/src/core/types/auth.ts +2 -0
  191. package/src/core/types/behaviour.ts +6 -0
  192. package/src/social/components/Social/CommentList/CommentList.tsx +4 -1
  193. package/src/social/components/Social/CommentListItem/CommentListItem.tsx +20 -12
  194. package/src/social/components/legacy/Social/ReplyCommentList/index.tsx +18 -11
  195. package/src/social/elements/CommunityJoinButtonElement/CommunityJoinButtonElement.tsx +10 -2
  196. package/src/social/features/comment/components/PostComment/CommentListItem/CommentListItem.tsx +23 -16
  197. package/src/social/features/comment/components/PostComment/ReplyCommentList/index.tsx +17 -11
  198. package/src/social/features/feed/components/TopNavigation/TopNavigation.tsx +3 -1
  199. package/src/social/features/post/Detail/index.tsx +5 -2
  200. package/src/social/features/post/components/Content/Content.tsx +7 -4
  201. package/src/social/features/post/components/EngagementActions/Components/DetailStyle.tsx +19 -14
  202. package/src/social/features/post/components/EngagementActions/Components/FeedStyle.tsx +20 -12
  203. package/src/social/features/user/Profile/components/Header/hooks/useHeader.ts +5 -2
  204. package/src/social/features/visitor/UsageLimit/UsageLimit.tsx +43 -0
  205. package/src/social/features/visitor/UsageLimit/hooks/index.ts +1 -0
  206. package/src/social/features/visitor/UsageLimit/hooks/useUsageLimit.ts +46 -0
  207. package/src/social/features/visitor/UsageLimit/index.ts +1 -0
  208. package/src/social/features/visitor/UsageLimit/styles.ts +45 -0
  209. package/src/social/hooks/index.ts +2 -0
  210. package/src/social/hooks/useCommunityEngagementBehavior.ts +57 -0
  211. package/src/social/hooks/useGlobalBehavior.ts +33 -0
  212. package/src/social/hooks/usePostPermission.ts +3 -1
  213. package/src/social/hooks/useStoryPermission.ts +8 -6
  214. package/src/social/providers/BehaviourProvider.tsx +1 -0
  215. package/src/social/screens/SocialHomePage/index.tsx +24 -11
  216. package/src/social/screens/VisitorUsageLimit/VisitorUsageLimit.tsx +5 -0
  217. package/src/social/screens/VisitorUsageLimit/index.ts +1 -0
@@ -4,17 +4,19 @@ import useSocialSettings from '../../core/hooks/useSocialSettings';
4
4
  import { checkStoryPermission, isAdmin } from '../utils/permissions';
5
5
 
6
6
  export function useStoryPermission(communityId?: string) {
7
- const { client } = useAuth();
7
+ const { client, isVisitorOrBot } = useAuth();
8
8
  const { socialSettings } = useSocialSettings();
9
9
  const user = useUser(client?.userId || '');
10
10
 
11
11
  const isGlobalAdmin = isAdmin(user?.roles);
12
12
 
13
- const hasStoryPermission = !communityId
14
- ? socialSettings?.story?.allowAllUserToCreateStory
15
- : socialSettings?.story?.allowAllUserToCreateStory ||
16
- isGlobalAdmin ||
17
- checkStoryPermission(client, communityId);
13
+ const hasStoryPermission =
14
+ !isVisitorOrBot &&
15
+ (!communityId
16
+ ? socialSettings?.story?.allowAllUserToCreateStory
17
+ : socialSettings?.story?.allowAllUserToCreateStory ||
18
+ isGlobalAdmin ||
19
+ checkStoryPermission(client, communityId));
18
20
 
19
21
  return { hasStoryPermission };
20
22
  }
@@ -14,6 +14,7 @@ export const BehaviourProvider = ({
14
14
  }: IBehavioudProviderProps) => {
15
15
  const defaultBehaviour = useMemo(
16
16
  () => ({
17
+ AmityGlobalBehaviour: {},
17
18
  AmitySocialHomePageBehaviour: {},
18
19
  AmityGlobalFeedComponentBehavior: {},
19
20
  AmityPostContentComponentBehavior: {},
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { useCallback, useRef, useState } from 'react';
2
+ import { useCallback, useEffect, useRef, useState } from 'react';
3
3
  import { StyleSheet, View } from 'react-native';
4
4
  import CustomSocialTab from '../../components/CustomSocialTab/CustomSocialTab';
5
5
  import { useUiKitConfig } from '../../hooks';
@@ -20,7 +20,7 @@ const PROFILE_TAB = 'Profile';
20
20
 
21
21
  const AmitySocialHomePage = () => {
22
22
  const theme = useTheme() as MyMD3Theme;
23
- const { client } = useAuth();
23
+ const { client, isVisitorOrBot } = useAuth();
24
24
 
25
25
  const styles = StyleSheet.create({
26
26
  container: {
@@ -55,6 +55,13 @@ const AmitySocialHomePage = () => {
55
55
  const [activeTab, setActiveTab] = useState<string>(newsFeedTab);
56
56
  const visitedTabs = useRef<Set<string>>(new Set([newsFeedTab]));
57
57
 
58
+ useEffect(() => {
59
+ if (isVisitorOrBot) {
60
+ visitedTabs.current.add(exploreTab);
61
+ setActiveTab(exploreTab);
62
+ }
63
+ }, [isVisitorOrBot, exploreTab]);
64
+
58
65
  const onTabChange = useCallback(
59
66
  (tabName: string) => {
60
67
  if (AmitySocialHomePageBehaviour?.onChooseTab)
@@ -85,21 +92,27 @@ const AmitySocialHomePage = () => {
85
92
  <CustomSocialTab
86
93
  activeTab={activeTab}
87
94
  onTabChange={onTabChange}
88
- tabNames={[newsFeedTab, exploreTab, myCommunitiesTab, PROFILE_TAB]}
95
+ tabNames={
96
+ isVisitorOrBot
97
+ ? [exploreTab]
98
+ : [newsFeedTab, exploreTab, myCommunitiesTab, PROFILE_TAB]
99
+ }
89
100
  />
90
101
  <Divider />
91
- <View style={tabStyle(newsFeedTab)}>
92
- <AmityNewsFeedComponent
93
- pageId={PageID.social_home_page}
94
- onPressExploreCommunity={onPressExploreCommunity}
95
- />
96
- </View>
102
+ {!isVisitorOrBot && (
103
+ <View style={tabStyle(newsFeedTab)}>
104
+ <AmityNewsFeedComponent
105
+ pageId={PageID.social_home_page}
106
+ onPressExploreCommunity={onPressExploreCommunity}
107
+ />
108
+ </View>
109
+ )}
97
110
  {visitedTabs.current.has(exploreTab) && (
98
111
  <View style={tabStyle(exploreTab)}>
99
112
  <AmityExploreComponent pageId={PageID.social_home_page} />
100
113
  </View>
101
114
  )}
102
- {visitedTabs.current.has(myCommunitiesTab) && (
115
+ {!isVisitorOrBot && visitedTabs.current.has(myCommunitiesTab) && (
103
116
  <View style={tabStyle(myCommunitiesTab)}>
104
117
  <AmityMyCommunitiesComponent
105
118
  pageId={PageID.social_home_page}
@@ -107,7 +120,7 @@ const AmitySocialHomePage = () => {
107
120
  />
108
121
  </View>
109
122
  )}
110
- {visitedTabs.current.has(PROFILE_TAB) && (
123
+ {!isVisitorOrBot && visitedTabs.current.has(PROFILE_TAB) && (
111
124
  <View style={tabStyle(PROFILE_TAB)}>
112
125
  <UserProfile inline stickyTab={false} userId={client?.userId ?? ''} />
113
126
  </View>
@@ -0,0 +1,5 @@
1
+ import { UsageLimit } from '../../features/visitor/UsageLimit';
2
+
3
+ export function VisitorUsageLimit() {
4
+ return <UsageLimit />;
5
+ }
@@ -0,0 +1 @@
1
+ export { VisitorUsageLimit } from './VisitorUsageLimit';