be-components 6.7.6 → 6.7.8
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.
- package/lib/commonjs/Group/api/index.js +0 -1
- package/lib/commonjs/Group/api/index.js.map +1 -1
- package/lib/commonjs/Group/components/MySettingsForm.js +0 -1
- package/lib/commonjs/Group/components/MySettingsForm.js.map +1 -1
- package/lib/commonjs/Group/index.js +0 -1
- package/lib/commonjs/Group/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/OrderBookChart.js +13 -25
- package/lib/commonjs/MarketComponents/components/OrderBookChart.js.map +1 -1
- package/lib/module/Group/api/index.js +0 -1
- package/lib/module/Group/api/index.js.map +1 -1
- package/lib/module/Group/components/MySettingsForm.js +0 -1
- package/lib/module/Group/components/MySettingsForm.js.map +1 -1
- package/lib/module/Group/index.js +0 -1
- package/lib/module/Group/index.js.map +1 -1
- package/lib/module/MarketComponents/components/OrderBookChart.js +13 -25
- package/lib/module/MarketComponents/components/OrderBookChart.js.map +1 -1
- package/lib/typescript/lib/commonjs/Group/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Group/components/MySettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Group/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/OrderBookChart.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/components/MySettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Group/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/OrderBookChart.d.ts.map +1 -1
- package/lib/typescript/src/Group/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Group/components/MySettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/Group/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/OrderBookChart.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Group/api/index.ts +0 -1
- package/src/Group/components/MySettingsForm.tsx +0 -1
- package/src/Group/index.tsx +0 -1
- package/src/MarketComponents/components/OrderBookChart.tsx +9 -10
|
@@ -68,7 +68,6 @@ const MySettingsForm = ({ group_player, onUpdateGroupPlayer, onClose }: MySettin
|
|
|
68
68
|
<Switch loading={is_loading} value={setting_value} switch_type='on_off' onChange={async(val) => {
|
|
69
69
|
if(data.item.setting_key == 'activity_notifications'){
|
|
70
70
|
let new_val = val ? [] : undefined
|
|
71
|
-
console.log(new_val)
|
|
72
71
|
return handleSave({ ...group_player, [data.item.setting_key]: new_val }, data.item.setting_key)
|
|
73
72
|
}
|
|
74
73
|
return handleSave({ ...group_player, [data.item.setting_key]: val }, data.item.setting_key)
|
package/src/Group/index.tsx
CHANGED
|
@@ -220,7 +220,6 @@ const GroupComponent = ({ refresh_key, group_id, player, mode, init_invite_code,
|
|
|
220
220
|
})
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
console.log(my_group_player)
|
|
224
223
|
const getGroupAnalytics = async(id:string, time_option:TimeOptionProps) => {
|
|
225
224
|
setGroupAnalytics({ ...group_analytics, loading: true });
|
|
226
225
|
let analytics = await GroupApi.getGroupAnalytics(id, time_option.to, time_option.from);
|
|
@@ -39,7 +39,10 @@ const OrderBookChart = ({ order_book, market, active_var_1, onSelectVar1, away_l
|
|
|
39
39
|
return undefined
|
|
40
40
|
})
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
let o_side_width = width * (1 - (o_side_stat?.probability ?? 1))
|
|
43
|
+
let trade_side_width = width * (1 - (trade_side_stat?.probability ?? 1))
|
|
44
|
+
//if(o_side_width > MAX_WIDTH){ o_side_width = MAX_WIDTH }
|
|
45
|
+
//if(trade_side_width > MAX_WIDTH){ trade_side_width = MAX_WIDTH }
|
|
43
46
|
return (
|
|
44
47
|
<View float>
|
|
45
48
|
<Button
|
|
@@ -50,34 +53,30 @@ const OrderBookChart = ({ order_book, market, active_var_1, onSelectVar1, away_l
|
|
|
50
53
|
:
|
|
51
54
|
<></>
|
|
52
55
|
}
|
|
53
|
-
<View transparent style={{
|
|
56
|
+
<View transparent style={{flex:1, flexDirection:'row', alignItems:'center', justifyContent:'space-between'}} onLayout={(event) => {
|
|
54
57
|
if(Math.abs(event.nativeEvent.layout.width - width) < 20){ return }
|
|
55
58
|
return setWidth(event.nativeEvent.layout.width)
|
|
56
59
|
}}>
|
|
57
60
|
{o_side_stat ?
|
|
58
|
-
<View transparent style={{ width:
|
|
59
|
-
{100 > -800 ?
|
|
61
|
+
<View transparent style={{ width: o_side_width, height:25, backgroundColor:Colors.text.highlight, borderRightWidth:1, borderRightColor:Colors.text.highlight, borderTopLeftRadius:4, borderBottomLeftRadius:4, flexGrow:0 }}>
|
|
60
62
|
<View transparent style={{ position: 'absolute', paddingRight:5, top:0, right:0, left:0, bottom:0, justifyContent:'center', alignItems:'flex-end' }}>
|
|
61
63
|
<Text size={12} textAlign='right' color={Colors.text.white} theme='h2'>{MarketComponentHelpers.getOddsLabel(MarketComponentHelpers.calcAmericanOddsFromProbability(o_side_stat.probability))}</Text>
|
|
62
64
|
</View>
|
|
63
|
-
:<Text size={12} textAlign='right' style={{padding:8}} color={Colors.text.white} theme='h1'>-</Text> }
|
|
64
65
|
</View>
|
|
65
66
|
:
|
|
66
67
|
<View transparent style={{ flexDirection:'row', alignItems:'center', justifyContent:'space-between'}}>
|
|
67
|
-
<Text size={12} textAlign='right' style={{padding:5}} theme='description'>
|
|
68
|
+
<Text size={12} textAlign='right' style={{padding:5}} theme='description'>NA</Text>
|
|
68
69
|
</View>
|
|
69
70
|
}
|
|
70
71
|
{trade_side_stat ?
|
|
71
|
-
<View transparent style={{ width:
|
|
72
|
-
{100 > -800 ?
|
|
72
|
+
<View transparent style={{ width: trade_side_width, height:25, backgroundColor:Colors.text.action, borderLeftWidth:1, borderLeftColor:Colors.text.action, borderTopRightRadius:4, borderBottomRightRadius:4, flexGrow:0 }}>
|
|
73
73
|
<View transparent style={{ position: 'absolute', paddingLeft:5, top:0, right:0, left:0, bottom:0, justifyContent:'center', alignItems:'flex-start' }}>
|
|
74
74
|
<Text size={12} textAlign='right' color={Colors.text.white} theme='h1'>{MarketComponentHelpers.getOddsLabel(MarketComponentHelpers.calcAmericanOddsFromProbability(trade_side_stat.probability))}</Text>
|
|
75
75
|
</View>
|
|
76
|
-
:<Text size={12} textAlign='right' style={{padding:8}} color={Colors.text.white} theme='h2'>-</Text>}
|
|
77
76
|
</View>
|
|
78
77
|
:
|
|
79
78
|
<View transparent style={{ flexDirection:'row', alignItems:'center', justifyContent:'space-between'}}>
|
|
80
|
-
<Text size={12} textAlign='left' style={{padding:5}} theme='description'>
|
|
79
|
+
<Text size={12} textAlign='left' style={{padding:5}} theme='description'>NA</Text>
|
|
81
80
|
</View>
|
|
82
81
|
}
|
|
83
82
|
</View>
|