be-components 6.9.4 → 6.9.6

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 (144) hide show
  1. package/lib/commonjs/FlashMarket/FlashHolder.js +21 -2
  2. package/lib/commonjs/FlashMarket/FlashHolder.js.map +1 -1
  3. package/lib/commonjs/FlashMarket/api/index.js +5 -2
  4. package/lib/commonjs/FlashMarket/api/index.js.map +1 -1
  5. package/lib/commonjs/SocialComponents/ActivityDetail/components/PostCommentCard.js +142 -0
  6. package/lib/commonjs/SocialComponents/ActivityDetail/components/PostCommentCard.js.map +1 -0
  7. package/lib/commonjs/SocialComponents/ActivityDetail/index.js +309 -0
  8. package/lib/commonjs/SocialComponents/ActivityDetail/index.js.map +1 -0
  9. package/lib/commonjs/SocialComponents/FormattedTextInput/index.js +11 -3
  10. package/lib/commonjs/SocialComponents/FormattedTextInput/index.js.map +1 -1
  11. package/lib/commonjs/SocialComponents/PostCard/components/PostReactionBar.js +1 -0
  12. package/lib/commonjs/SocialComponents/PostCard/components/PostReactionBar.js.map +1 -1
  13. package/lib/commonjs/SocialComponents/PostCard/index.js +36 -13
  14. package/lib/commonjs/SocialComponents/PostCard/index.js.map +1 -1
  15. package/lib/commonjs/SocialComponents/Poster/index.js +1 -1
  16. package/lib/commonjs/SocialComponents/Poster/index.js.map +1 -1
  17. package/lib/commonjs/SocialComponents/api/index.js +55 -2
  18. package/lib/commonjs/SocialComponents/api/index.js.map +1 -1
  19. package/lib/commonjs/SocialComponents/index.js +7 -0
  20. package/lib/commonjs/SocialComponents/index.js.map +1 -1
  21. package/lib/commonjs/Squares/api/index.js +11 -0
  22. package/lib/commonjs/Squares/api/index.js.map +1 -1
  23. package/lib/commonjs/Squares/index.js +9 -5
  24. package/lib/commonjs/Squares/index.js.map +1 -1
  25. package/lib/commonjs/Wallet/components/DepositCard.js +3 -1
  26. package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
  27. package/lib/commonjs/Wallet/index.js +8 -2
  28. package/lib/commonjs/Wallet/index.js.map +1 -1
  29. package/lib/module/FlashMarket/FlashHolder.js +22 -3
  30. package/lib/module/FlashMarket/FlashHolder.js.map +1 -1
  31. package/lib/module/FlashMarket/api/index.js +5 -2
  32. package/lib/module/FlashMarket/api/index.js.map +1 -1
  33. package/lib/module/FlashMarket/index.js.map +1 -1
  34. package/lib/module/SocialComponents/ActivityDetail/components/PostCommentCard.js +134 -0
  35. package/lib/module/SocialComponents/ActivityDetail/components/PostCommentCard.js.map +1 -0
  36. package/lib/module/SocialComponents/ActivityDetail/index.js +301 -0
  37. package/lib/module/SocialComponents/ActivityDetail/index.js.map +1 -0
  38. package/lib/module/SocialComponents/FormattedTextInput/index.js +11 -3
  39. package/lib/module/SocialComponents/FormattedTextInput/index.js.map +1 -1
  40. package/lib/module/SocialComponents/PostCard/components/PostReactionBar.js +1 -0
  41. package/lib/module/SocialComponents/PostCard/components/PostReactionBar.js.map +1 -1
  42. package/lib/module/SocialComponents/PostCard/index.js +36 -13
  43. package/lib/module/SocialComponents/PostCard/index.js.map +1 -1
  44. package/lib/module/SocialComponents/Poster/index.js +1 -1
  45. package/lib/module/SocialComponents/Poster/index.js.map +1 -1
  46. package/lib/module/SocialComponents/api/index.js +55 -2
  47. package/lib/module/SocialComponents/api/index.js.map +1 -1
  48. package/lib/module/SocialComponents/index.js +2 -1
  49. package/lib/module/SocialComponents/index.js.map +1 -1
  50. package/lib/module/Squares/api/index.js +11 -0
  51. package/lib/module/Squares/api/index.js.map +1 -1
  52. package/lib/module/Squares/index.js +9 -5
  53. package/lib/module/Squares/index.js.map +1 -1
  54. package/lib/module/Wallet/components/DepositCard.js +3 -1
  55. package/lib/module/Wallet/components/DepositCard.js.map +1 -1
  56. package/lib/module/Wallet/index.js +8 -2
  57. package/lib/module/Wallet/index.js.map +1 -1
  58. package/lib/typescript/lib/commonjs/FlashMarket/FlashHolder.d.ts +2 -1
  59. package/lib/typescript/lib/commonjs/FlashMarket/FlashHolder.d.ts.map +1 -1
  60. package/lib/typescript/lib/commonjs/FlashMarket/api/index.d.ts.map +1 -1
  61. package/lib/typescript/lib/commonjs/SocialComponents/ActivityDetail/components/PostCommentCard.d.ts +12 -0
  62. package/lib/typescript/lib/commonjs/SocialComponents/ActivityDetail/components/PostCommentCard.d.ts.map +1 -0
  63. package/lib/typescript/lib/commonjs/SocialComponents/ActivityDetail/index.d.ts +15 -0
  64. package/lib/typescript/lib/commonjs/SocialComponents/ActivityDetail/index.d.ts.map +1 -0
  65. package/lib/typescript/lib/commonjs/SocialComponents/FormattedTextInput/index.d.ts.map +1 -1
  66. package/lib/typescript/lib/commonjs/SocialComponents/PostCard/components/PostReactionBar.d.ts.map +1 -1
  67. package/lib/typescript/lib/commonjs/SocialComponents/PostCard/index.d.ts +2 -1
  68. package/lib/typescript/lib/commonjs/SocialComponents/PostCard/index.d.ts.map +1 -1
  69. package/lib/typescript/lib/commonjs/SocialComponents/api/index.d.ts +31 -1
  70. package/lib/typescript/lib/commonjs/SocialComponents/api/index.d.ts.map +1 -1
  71. package/lib/typescript/lib/commonjs/SocialComponents/index.d.ts +1 -0
  72. package/lib/typescript/lib/commonjs/Squares/api/index.d.ts +1 -0
  73. package/lib/typescript/lib/commonjs/Squares/api/index.d.ts.map +1 -1
  74. package/lib/typescript/lib/commonjs/Squares/index.d.ts +2 -1
  75. package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
  76. package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
  77. package/lib/typescript/lib/commonjs/Wallet/index.d.ts +3 -1
  78. package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
  79. package/lib/typescript/lib/module/FlashMarket/FlashHolder.d.ts +2 -1
  80. package/lib/typescript/lib/module/FlashMarket/FlashHolder.d.ts.map +1 -1
  81. package/lib/typescript/lib/module/FlashMarket/api/index.d.ts.map +1 -1
  82. package/lib/typescript/lib/module/SocialComponents/ActivityDetail/components/PostCommentCard.d.ts +12 -0
  83. package/lib/typescript/lib/module/SocialComponents/ActivityDetail/components/PostCommentCard.d.ts.map +1 -0
  84. package/lib/typescript/lib/module/SocialComponents/ActivityDetail/index.d.ts +15 -0
  85. package/lib/typescript/lib/module/SocialComponents/ActivityDetail/index.d.ts.map +1 -0
  86. package/lib/typescript/lib/module/SocialComponents/FormattedTextInput/index.d.ts.map +1 -1
  87. package/lib/typescript/lib/module/SocialComponents/PostCard/components/PostReactionBar.d.ts.map +1 -1
  88. package/lib/typescript/lib/module/SocialComponents/PostCard/index.d.ts +2 -1
  89. package/lib/typescript/lib/module/SocialComponents/PostCard/index.d.ts.map +1 -1
  90. package/lib/typescript/lib/module/SocialComponents/api/index.d.ts +31 -1
  91. package/lib/typescript/lib/module/SocialComponents/api/index.d.ts.map +1 -1
  92. package/lib/typescript/lib/module/SocialComponents/index.d.ts +2 -1
  93. package/lib/typescript/lib/module/SocialComponents/index.d.ts.map +1 -1
  94. package/lib/typescript/lib/module/Squares/api/index.d.ts +1 -0
  95. package/lib/typescript/lib/module/Squares/api/index.d.ts.map +1 -1
  96. package/lib/typescript/lib/module/Squares/index.d.ts +2 -1
  97. package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
  98. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
  99. package/lib/typescript/lib/module/Wallet/index.d.ts +3 -1
  100. package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
  101. package/lib/typescript/src/Components/AutoPageFlatList.d.ts +2 -1
  102. package/lib/typescript/src/Components/AutoPageFlatList.d.ts.map +1 -1
  103. package/lib/typescript/src/FlashMarket/FlashHolder.d.ts +2 -1
  104. package/lib/typescript/src/FlashMarket/FlashHolder.d.ts.map +1 -1
  105. package/lib/typescript/src/FlashMarket/api/index.d.ts +4 -1
  106. package/lib/typescript/src/FlashMarket/api/index.d.ts.map +1 -1
  107. package/lib/typescript/src/FlashMarket/index.d.ts +3 -2
  108. package/lib/typescript/src/FlashMarket/index.d.ts.map +1 -1
  109. package/lib/typescript/src/SocialComponents/ActivityDetail/components/PostCommentCard.d.ts +20 -0
  110. package/lib/typescript/src/SocialComponents/ActivityDetail/components/PostCommentCard.d.ts.map +1 -0
  111. package/lib/typescript/src/SocialComponents/ActivityDetail/index.d.ts +17 -0
  112. package/lib/typescript/src/SocialComponents/ActivityDetail/index.d.ts.map +1 -0
  113. package/lib/typescript/src/SocialComponents/FormattedTextInput/index.d.ts.map +1 -1
  114. package/lib/typescript/src/SocialComponents/PostCard/index.d.ts +2 -1
  115. package/lib/typescript/src/SocialComponents/PostCard/index.d.ts.map +1 -1
  116. package/lib/typescript/src/SocialComponents/api/index.d.ts +5 -2
  117. package/lib/typescript/src/SocialComponents/api/index.d.ts.map +1 -1
  118. package/lib/typescript/src/SocialComponents/index.d.ts +2 -1
  119. package/lib/typescript/src/SocialComponents/index.d.ts.map +1 -1
  120. package/lib/typescript/src/Squares/api/index.d.ts +1 -0
  121. package/lib/typescript/src/Squares/api/index.d.ts.map +1 -1
  122. package/lib/typescript/src/Squares/index.d.ts +2 -1
  123. package/lib/typescript/src/Squares/index.d.ts.map +1 -1
  124. package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
  125. package/lib/typescript/src/Wallet/index.d.ts +4 -1
  126. package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
  127. package/package.json +1 -1
  128. package/src/Components/AutoPageFlatList.tsx +1 -1
  129. package/src/FlashMarket/FlashHolder.tsx +19 -5
  130. package/src/FlashMarket/api/index.ts +3 -3
  131. package/src/FlashMarket/index.tsx +3 -3
  132. package/src/SocialComponents/ActivityDetail/components/PostCommentCard.tsx +101 -0
  133. package/src/SocialComponents/ActivityDetail/index.tsx +283 -0
  134. package/src/SocialComponents/FormattedTextInput/index.tsx +4 -3
  135. package/src/SocialComponents/PostCard/components/PostReactionBar.tsx +1 -1
  136. package/src/SocialComponents/PostCard/index.tsx +19 -8
  137. package/src/SocialComponents/Poster/index.tsx +1 -1
  138. package/src/SocialComponents/api/index.ts +54 -3
  139. package/src/SocialComponents/index.tsx +2 -1
  140. package/src/Squares/api/index.ts +11 -0
  141. package/src/Squares/index.tsx +14 -9
  142. package/src/Wallet/components/DepositCard.tsx +4 -2
  143. package/src/Wallet/index.tsx +6 -4
  144. package/src/types.d.ts +4 -2
@@ -48,7 +48,7 @@ const Poster = ({ width, post_id, insets, onCreatePost, onSelectImage, onClose }
48
48
  let ords:OrderProps[] = []
49
49
  let playrs:PublicPlayerProps[] = []
50
50
  if(post_id){
51
- existing_post = await SocialComponentApi.getPostById(post_id);
51
+ existing_post = await SocialComponentApi.getPostById(post_id, 'memo');
52
52
  if(existing_post){
53
53
  const set_up_data = await SocialComponentHelpers.getPostsData([existing_post]);
54
54
  ords = set_up_data.orders
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  import { APIOverrides } from "../../ApiOverrides";
3
- import type { AthleteProps, EventProps, LeagueProps, MatchProps, OrderProps, PlayerFollowerProps, PlayerPodcastEpisodeProps, PlayerPodcastProps, PodcastEpisodesProps, PodcastProps, PostReactionProps, PublicPlayerProps, TextTagProps, TeamProps, TournamentProps, GroupProps, GroupMessageProps, GroupPlayerProps, MyPlayerProps, URLMetadataProps, PostProps, ArticleProps } from "../../types";
3
+ import type { AthleteProps, EventProps, LeagueProps, MatchProps, OrderProps, PlayerFollowerProps, PlayerPodcastEpisodeProps, PlayerPodcastProps, PodcastEpisodesProps, PodcastProps, PostReactionProps, PublicPlayerProps, TextTagProps, TeamProps, TournamentProps, GroupProps, GroupMessageProps, GroupPlayerProps, MyPlayerProps, URLMetadataProps, PostProps, ArticleProps, PostCommentProps } from "../../types";
4
4
  import Colors from "../../constants/colors";
5
5
  import moment from "moment-mini";
6
6
 
@@ -27,6 +27,27 @@ const SocialComponentApi = {
27
27
  return []
28
28
  }
29
29
  },
30
+ getPostComments: async(post_id:string, offset:number):Promise<PostCommentProps[]> => {
31
+ try {
32
+ console.log(post_id)
33
+ const resp = await axios.get(`${SOCIAL_SVC_API}/v1/posts/comments/post/${post_id}?post_type=memo&offset=${offset}`);
34
+ console.log(resp.data)
35
+ return resp.data.post_comments
36
+ } catch (e) {
37
+ console.log(e)
38
+ return []
39
+ }
40
+ },
41
+ createComment: async(post_comment:PostCommentProps):Promise<undefined | PostCommentProps> => {
42
+ try {
43
+ const resp = await axios.post(`${SOCIAL_SVC_API}/v1/posts/comment/create`, { post_comment });
44
+ console.log(resp.data)
45
+ return resp.data.post_comment
46
+ } catch (e) {
47
+ console.log(e);
48
+ return undefined
49
+ }
50
+ },
30
51
  getPlayersByIds: async(player_ids:string[]):Promise<PublicPlayerProps[]> => {
31
52
  try {
32
53
  if(player_ids.length == 0){ return [] }
@@ -52,9 +73,9 @@ const SocialComponentApi = {
52
73
  const resp = await axios.post(`${SOCIAL_SVC_API}/v1/followers/player/create`, { player_follower })
53
74
  return resp.data.player_follower
54
75
  },
55
- getPostById: async(memo_post_id:string):Promise<PostProps | undefined> => {
76
+ getPostById: async(memo_post_id:string, post_type:string):Promise<PostProps | undefined> => {
56
77
  try {
57
- const resp = await axios.get(`${SOCIAL_SVC_API}/v1/posts/post/${memo_post_id}`);
78
+ const resp = await axios.get(`${SOCIAL_SVC_API}/v1/posts/post/${memo_post_id}?post_type=${post_type}`);
58
79
  return resp.data.post
59
80
  } catch (e) {
60
81
  console.log(e)
@@ -575,6 +596,36 @@ const SocialComponentHelpers = {
575
596
  }
576
597
  }
577
598
  },
599
+ getEmptyComment:():PostCommentProps => {
600
+ return {
601
+ activity_post_id: '',
602
+ player_id:'',
603
+ comment_images: [],
604
+ comment_orders:[],
605
+ comment_urls:[],
606
+ comment_videos:[],
607
+ formatted_text:'',
608
+ post_comment_id:'',
609
+ message: '',
610
+ formatted_body: {
611
+ blocks: [],
612
+ entityMap: {
613
+ value: {
614
+ type:'',
615
+ mutability: '',
616
+ data: {}
617
+ }
618
+ }
619
+ },
620
+ status:'visible',
621
+ post_type: 'memo',
622
+ edited: false,
623
+ my_reactions:[],
624
+ reaction_details: [],
625
+ create_datetime:'', last_update_datetime:''
626
+
627
+ }
628
+ },
578
629
  extractTagsFromText: (text:string, cursor?:number):TextTagProps[] => {
579
630
  let tags:TextTagProps[] = []
580
631
  let split_text = text.split(' ');
@@ -11,12 +11,13 @@ import { FormattedText } from "./FormattedTextInput/FormattedText";
11
11
  import InputBar from "./InputBar";
12
12
  import GroupChat from "./GroupChat";
13
13
  import Poster from "./Poster";
14
-
14
+ import ActivityDetail from "./ActivityDetail";
15
15
  export {
16
16
  PlayerCard,
17
17
  PlayerList,
18
18
  FormattedTextInput,
19
19
  InputBar,
20
+ ActivityDetail,
20
21
  Poster,
21
22
  FormattedText,
22
23
  PlayerProfile,
@@ -30,6 +30,17 @@ const SquaresApi = {
30
30
  const resp = await axios.get(`${EVENT_SVC_API}/v1/leagues/league/${league_id}`)
31
31
  return resp.data.league
32
32
  },
33
+ getSquaresCompetitionsByCompany:async(company_id:string, status: 'active'|'closed', offset:number):Promise<SquaresCompetitionProps[]> => {
34
+ try {
35
+ console.log(company_id, status, offset)
36
+ const resp = await axios.get(`${TP_SVC_API}/v1/squares/competitions/company/${company_id}?status=${status}&offset=${offset}`);
37
+ console.log(resp.data)
38
+ return resp.data.squares_competitions
39
+ } catch (e) {
40
+ console.log(e);
41
+ return []
42
+ }
43
+ },
33
44
  buySquares: async(sq_comp_id:string, player_squares:PlayerSquareProps[], promo_balance?:boolean):Promise<BuySquaresResponseProps> => {
34
45
  const resp = await axios.post(`${TP_SVC_API}/tp/squares/square/buy`, { sq_comp_id, player_squares, promo_balance })
35
46
  if(resp.data.saved_player_squares.length != player_squares.length){ alert('Some of your bids could not be processed as they were outbid before purchasing') }
@@ -23,6 +23,7 @@ import { useColors } from "../constants/useColors";
23
23
  type SquaresModuleProps = {
24
24
  player_id?:string,
25
25
  distinct_id:string,
26
+ info_header?:boolean,
26
27
  view_mode:'desktop'|'mobile',
27
28
  sq_comp_id:string,
28
29
  onManageSquares?:(sc:SquaresCompetitionProps) => void,
@@ -35,7 +36,7 @@ type SquaresModuleProps = {
35
36
 
36
37
  const squares_sections = ['header', 'offers', 'toggle', 'event', 'board', 'board_stats', 'my_stats', 'results', 'my_squares', 'winners','hidden_prizes','details', 'owners']
37
38
 
38
- const SquaresModule = ({ sq_comp_id, view_mode, insets, player_id, distinct_id, onManageSquares, onRequestAuthenticate, onShareCompetition, onPlayerSelect }:SquaresModuleProps) => {
39
+ const SquaresModule = ({ sq_comp_id, info_header, view_mode, insets, player_id, distinct_id, onManageSquares, onRequestAuthenticate, onShareCompetition, onPlayerSelect }:SquaresModuleProps) => {
39
40
  const C = useColors();
40
41
  const [ active_tab, setActiveTab ] = useState('board');
41
42
  const [ needs_reload, setNeedsReload ] = useState(false);
@@ -353,6 +354,7 @@ const SquaresModule = ({ sq_comp_id, view_mode, insets, player_id, distinct_id,
353
354
  switch(data.item){
354
355
  case 'header':
355
356
  if(!squares_competition){ return <></> }
357
+ if(info_header && active_tab != 'info'){ return <></> }
356
358
  return (
357
359
  <View type='header' nativeID="squares_header" style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
358
360
  <View transparent>
@@ -404,7 +406,7 @@ const SquaresModule = ({ sq_comp_id, view_mode, insets, player_id, distinct_id,
404
406
  )
405
407
  case 'toggle':
406
408
  return (
407
- <View style={{ padding:8, width:view_mode == 'desktop'?800: undefined, alignSelf:view_mode == 'desktop'?'center':undefined }}>
409
+ <View style={{ padding:8 }}>
408
410
  <Toggle
409
411
  options={toggle_options}
410
412
  active_toggle_color={C.text.action}
@@ -487,13 +489,16 @@ const SquaresModule = ({ sq_comp_id, view_mode, insets, player_id, distinct_id,
487
489
  case 'details':
488
490
  if(!squares_competition){ return <></> }
489
491
  return (
490
- <SquaresDetails
491
- squares_competition={squares_competition}
492
- hidden={active_tab == 'info' ? false : true}
493
- disable_collapse
494
- squares_payout_type={squares_payout_type}
495
- squares_type={squares_type}
496
- />
492
+ <View transparent>
493
+ <SquaresDetails
494
+ squares_competition={squares_competition}
495
+ hidden={active_tab == 'info' ? false : true}
496
+ disable_collapse
497
+ squares_payout_type={squares_payout_type}
498
+ squares_type={squares_type}
499
+ />
500
+ </View>
501
+
497
502
 
498
503
  )
499
504
  case 'owners':
@@ -25,6 +25,7 @@ type DepositCardProps = {
25
25
  const sections = [ 'header', 'input', 'limits' ]
26
26
  const DepositCard = ({ wallet_settings, code_details, account, deposit_limit, onFocusPosition, onTransact, onCancel }:DepositCardProps) => {
27
27
  const Colors = useColors();
28
+ const [ loaded, setLoaded ] = useState(false);
28
29
  const [ draft_order, setDraftOrder ] = useState<ItemOrderProps>();
29
30
  const [ instant_disclaimer, setInstantDisclaimer ] = useState(false);
30
31
  const [ account_snooze, setAccountSnooze ] = useState<AccountSnoozeProps>();
@@ -38,6 +39,7 @@ const DepositCard = ({ wallet_settings, code_details, account, deposit_limit, on
38
39
  const as = await WalletApi.getSnoozeByAccountId(account.account_id);
39
40
  setAccountSnooze(as)
40
41
  setDraftOrder(ItemOrderHelpers.genDepositOrder(item, account))
42
+ setLoaded(true)
41
43
  }
42
44
 
43
45
  const handleTransact = () => {
@@ -207,8 +209,8 @@ const DepositCard = ({ wallet_settings, code_details, account, deposit_limit, on
207
209
  </View>
208
210
  </Button>
209
211
  </View>
210
- :<></>}
211
- {errors.length > 0 ?
212
+ :<></>}
213
+ {errors.length > 0 && loaded ?
212
214
  <View float nativeID='errors' style={{ borderBottomRightRadius:0, borderBottomLeftRadius:0 }}>
213
215
  <View transparent style={{ flexDirection:'row', alignItems:'center', padding:15, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:Colors.text.error, borderBottomWidth:1, borderBottomColor:Colors.borders.light }}>
214
216
  <Icons.AlertIcon color={Colors.text.white} size={24}/>
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { ActivityIndicator, FlatList } from 'react-native';
2
+ import { ActivityIndicator, FlatList, type ViewStyle } from 'react-native';
3
3
  import { ItemOrderApi, WalletApi, WalletHelpers } from './api';
4
4
  import WalletSetup from './components/WalletSetup';
5
5
  import type { AccountProps, BEEventProps, CodeRequestProps, FocusPositionProps, ItemOrderProps, ItemProps, MyPlayerProps, PlayerAddressProps, PlayerBalanceProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps, PublicPlayerProps, RewardOptionProps, WalletSettingsProps } from '../types';
@@ -27,6 +27,8 @@ import { useColors } from '../constants/useColors';
27
27
 
28
28
  type MyWalletProps = {
29
29
  account_id?:string,
30
+ header_style?:ViewStyle,
31
+ footer_style?:ViewStyle,
30
32
  new_balance?:PlayerBalanceProps,
31
33
  height?:number,
32
34
  view_mode?:'desktop'|'mobile',
@@ -37,7 +39,7 @@ type MyWalletProps = {
37
39
  onTransact: (item_order:ItemOrderProps, account_id?:string) => void
38
40
  }
39
41
 
40
- const MyWallet = ({ height, new_balance, account_id, view_mode, insets, onFocusPosition, onTransact, onClose, onEvent }:MyWalletProps) => {
42
+ const MyWallet = ({ height, new_balance, account_id, view_mode, insets, header_style, footer_style, onFocusPosition, onTransact, onClose, onEvent }:MyWalletProps) => {
41
43
  const Colors = useColors();
42
44
  const [ wallet_size, setWalletSize ] = useState({ height:0, width:0 });
43
45
  const [ view, setView ] = useState<{
@@ -190,7 +192,7 @@ const MyWallet = ({ height, new_balance, account_id, view_mode, insets, onFocusP
190
192
 
191
193
  if(!loaded || !player || !wallet_settings || !player_balance || !deposit_limit || !withdraw_limit){
192
194
  return (
193
- <View style={{ flex:1, height, padding:20 }}>
195
+ <View style={{ flex:1, height, padding:20, ...header_style, ...footer_style }}>
194
196
  <Text size={16} theme='h1' textAlign='center'>LOADING YOUR WALLET</Text>
195
197
  <ActivityIndicator size='large' color={Colors.text.h1} style={{ alignSelf:'center', marginTop:30 }} />
196
198
  </View>
@@ -376,7 +378,7 @@ const MyWallet = ({ height, new_balance, account_id, view_mode, insets, onFocusP
376
378
  )
377
379
  }
378
380
  return (
379
- <View style={{ flex:1, height }}>
381
+ <View style={{ flex:1, height, ...header_style, ...footer_style }}>
380
382
  {!WalletHelpers.isWalletAuthenticated(wallet_settings) ?
381
383
  <WalletSetup
382
384
  player={player}
package/src/types.d.ts CHANGED
@@ -2935,10 +2935,12 @@ export interface PostCommentProps {
2935
2935
  activity_post_id:string,
2936
2936
  player_id:string,
2937
2937
  message:string,
2938
- status:'active'|'hidden',
2938
+ tags?:TextTagProps[],
2939
+ status:'visible'|'hidden',
2940
+ formatted_text:string,
2939
2941
  edited:boolean,
2940
2942
  post_type: 'memo' | 'activity',
2941
- related_comment_id:string,
2943
+ related_comment_id?:string,
2942
2944
  create_datetime:any,
2943
2945
  last_update_datetime:any,
2944
2946
  playerDetails?:PublicPlayerProps,