muba-posting 6.0.7 → 6.0.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/PopupSpendProduct.js +5 -3
- package/PostingEdit.js +4 -2
- package/fonts/Font-Awesome.ttf +0 -0
- package/fonts/config.json +18 -0
- package/package.json +1 -1
package/PopupSpendProduct.js
CHANGED
|
@@ -3,9 +3,11 @@ import { View } from 'react-native';
|
|
|
3
3
|
import OutputText from 'muba-output-text';
|
|
4
4
|
import PopupAdvice from 'muba-popup-advice';
|
|
5
5
|
import { Product } from './utils/Common.js';
|
|
6
|
-
import Icon from '@expo/vector-icons/FontAwesome';
|
|
7
6
|
import { strings } from 'muba-i18n';
|
|
8
7
|
import commonStyles from './commonStyles';
|
|
8
|
+
import { createIconSetFromFontello } from 'react-native-vector-icons';
|
|
9
|
+
import fontelloConfig from './fonts/config.json';
|
|
10
|
+
const FontAwesomeIcon = createIconSetFromFontello(fontelloConfig);
|
|
9
11
|
|
|
10
12
|
export const PROMOTE_AD = { method: 'PUT', url: '/controller/ads/{adId}/promote' };
|
|
11
13
|
const COUNTRY_PHONE = { method: 'GET', url: '/controller/countries/{countryCode}/phones' };
|
|
@@ -84,7 +86,7 @@ export default class PopupSpendProduct extends React.Component {
|
|
|
84
86
|
{this.state.remaining <= -1 ?
|
|
85
87
|
<View>
|
|
86
88
|
<View style={commonStyles.alignCenter}>
|
|
87
|
-
<
|
|
89
|
+
<FontAwesomeIcon style={[commonStyles.popupIcon, commonStyles.red]} name="exclamation-circle" />
|
|
88
90
|
<OutputText style={[commonStyles.popupTitle, commonStyles.red]}>{strings('setup.noPromoteTitle', { product: this.state.product })}</OutputText>
|
|
89
91
|
</View>
|
|
90
92
|
<OutputText style={commonStyles.popupText}>{strings('setup.noPromoteSubtitle', { countryPhone: this.state.countryPhone })}</OutputText>
|
|
@@ -92,7 +94,7 @@ export default class PopupSpendProduct extends React.Component {
|
|
|
92
94
|
:
|
|
93
95
|
<View>
|
|
94
96
|
<View style={commonStyles.alignCenter}>
|
|
95
|
-
<
|
|
97
|
+
<FontAwesomeIcon style={[commonStyles.popupIcon, commonStyles.popupIconGreen]} name="check-circle" />
|
|
96
98
|
<OutputText style={[commonStyles.popupTitle, commonStyles.popupTitleGreen, { marginBottom: 0 }]}>{strings('setup.congratulationsPromoteAdTitle')}</OutputText>
|
|
97
99
|
<OutputText style={[commonStyles.popupTitle, commonStyles.popupTitleGreen, commonStyles.h2]}>{this.state.product}</OutputText>
|
|
98
100
|
</View>
|
package/PostingEdit.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Image, TouchableOpacity, Text } from 'react-native';
|
|
3
|
-
import Icon from '@expo/vector-icons/FontAwesome';
|
|
4
3
|
import { strings } from 'muba-i18n';
|
|
5
4
|
import commonStyles from './commonStyles';
|
|
6
5
|
import { Views } from './utils/Views';
|
|
6
|
+
import { createIconSetFromFontello } from 'react-native-vector-icons';
|
|
7
|
+
import fontelloConfig from './fonts/config.json';
|
|
8
|
+
const FontAwesomeIcon = createIconSetFromFontello(fontelloConfig);
|
|
7
9
|
|
|
8
10
|
export default class PostingEdit extends React.Component {
|
|
9
11
|
constructor(props) {
|
|
@@ -45,7 +47,7 @@ export default class PostingEdit extends React.Component {
|
|
|
45
47
|
this.state.showFunctionalities != null ?
|
|
46
48
|
<View style={commonStyles.body}>
|
|
47
49
|
<View style={[commonStyles.row]}>
|
|
48
|
-
<
|
|
50
|
+
<FontAwesomeIcon style={[commonStyles.h2, commonStyles.homeContentH2, commonStyles.titleIcon]} name="edit" />
|
|
49
51
|
<Text style={[commonStyles.h2, commonStyles.homeContentH2]}>{strings('edit.whatEditing')}</Text>
|
|
50
52
|
</View>
|
|
51
53
|
<View style={[commonStyles.row, commonStyles.editRow1]}>
|
package/fonts/Font-Awesome.ttf
CHANGED
|
Binary file
|
package/fonts/config.json
CHANGED
|
@@ -119,6 +119,24 @@
|
|
|
119
119
|
"css": "lock-open-alt",
|
|
120
120
|
"code": 61758,
|
|
121
121
|
"src": "fontawesome"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"uid": "b035c28eba2b35c6ffe92aee8b0df507",
|
|
125
|
+
"css": "exclamation-circle",
|
|
126
|
+
"code": 59409,
|
|
127
|
+
"src": "fontawesome"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"uid": "43ab845088317bd348dee1d975700c48",
|
|
131
|
+
"css": "check-circle",
|
|
132
|
+
"code": 59410,
|
|
133
|
+
"src": "fontawesome"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"uid": "d35a1d35efeb784d1dc9ac18b9b6c2b6",
|
|
137
|
+
"css": "edit",
|
|
138
|
+
"code": 59411,
|
|
139
|
+
"src": "fontawesome"
|
|
122
140
|
}
|
|
123
141
|
]
|
|
124
142
|
}
|