Skip to content

Commit f805d60

Browse files
authored
Merge pull request #54 from bitholla/develop
v1.1.3
2 parents 57d22a3 + 36d0d91 commit f805d60

File tree

21 files changed

+652
-1104
lines changed

21 files changed

+652
-1104
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
- name: slack_noti_to_releases
1313
image: bitholla/devops-tools:drone_partymaker-0.1.4
1414
environment:
15-
webhook_url:
15+
WEBHOOK_URL:
1616
from_secret: webhook_url
1717
when:
1818
status: [success]

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ git clone https://github.com/bitholla/hollaex-kit.git
1717
bash install.sh
1818
```
1919

20-
OR
21-
22-
```
23-
curl -L https://raw.githubusercontent.com/bitholla/hollaex-cli/master/install.sh | bash
24-
25-
hollaex init
26-
```
2720
Read more on our [Docs](https://docs.bitholla.com/hollaex-kit/get-started)!
2821

2922
## Community

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.2
1+
1.1.3

web/package-lock.json

Lines changed: 613 additions & 642 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "hollaex",
3-
"version": "1.20.17",
2+
"name": "hollaex-kit",
3+
"version": "1.20.18",
44
"private": true,
55
"dependencies": {
66
"@material/button": "^0.7.0",

web/src/components/AppBar/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,18 @@ class AppBar extends Component {
193193
};
194194

195195
handleTheme = (selected) => {
196-
const settings = {};
197196
if (!isLoggedIn()) {
198197
this.props.changeTheme(selected);
199198
localStorage.setItem('theme', selected);
200199
} else {
200+
const { settings = {} } = this.props.user;
201+
const settingsObj = { ...settings };
201202
if (selected === 'white') {
202-
settings.interface = { theme: 'white' };
203+
settingsObj.interface.theme = 'white';
203204
} else {
204-
settings.interface = { theme: 'dark' };
205+
settingsObj.interface.theme = 'dark';
205206
}
206-
return updateUser({ settings })
207+
return updateUser({ settings: settingsObj })
207208
.then(({ data }) => {
208209
this.props.setUserData(data);
209210
this.props.changeTheme(data.settings.interface.theme);

web/src/components/Chat/ChatMessage.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import classnames from 'classnames';
33
import moment from 'moment';
44
import STRINGS from '../../config/localizedStrings';
55
import TruncateMarkup from 'react-truncate-markup';
6-
import { ICONS, IS_XHT } from '../../config/constants';
6+
import { ICONS } from '../../config/constants';
77
import { USER_TYPES } from '../../actions/appActions';
88
import ReactSVG from 'react-svg';
99

@@ -66,15 +66,11 @@ class ChatMessageWithText extends Component {
6666
ownMessage,
6767
// timestamp,
6868
verification_level,
69-
is_hap
7069
} = this.props;
7170
const { maxLines } = this.state;
7271
let icon = ICONS[`LEVEL_ACCOUNT_ICON_${verification_level}`]
7372
? ICONS[`LEVEL_ACCOUNT_ICON_${verification_level}`]
7473
: ICONS.LEVEL_ACCOUNT_ICON_4;
75-
if (IS_XHT && ownMessage && is_hap) {
76-
icon = ICONS.HAP_ACCOUNT_ICON;
77-
}
7874
return (
7975
<div className={classnames('nonmobile')}>
8076
<div className="d-flex">
@@ -134,16 +130,11 @@ class ChatMessageWithImage extends Component {
134130
messageContent,
135131
timestamp,
136132
verification_level,
137-
ownMessage,
138-
is_hap
139133
} = this.props;
140134
const { hideImage } = this.state;
141135
let icon = verification_level >= 4
142136
? ICONS.LEVEL_ACCOUNT_ICON_4
143137
: ICONS[`LEVEL_ACCOUNT_ICON_${verification_level}`];
144-
if (IS_XHT && ownMessage && is_hap) {
145-
icon = ICONS.HAP_ACCOUNT_ICON;
146-
}
147138

148139
return (
149140
<div>
@@ -211,7 +202,6 @@ export class ChatMessage extends Component {
211202
ownMessage,
212203
timestamp,
213204
verification_level,
214-
is_hap,
215205
onCloseEmoji
216206
} = this.props;
217207
const { showOptions } = this.state;
@@ -239,7 +229,6 @@ export class ChatMessage extends Component {
239229
messageType={messageType}
240230
timestamp={timestamp}
241231
verification_level={verification_level}
242-
is_hap={is_hap}
243232
/>
244233
) : (
245234
<ChatMessageWithText
@@ -249,7 +238,6 @@ export class ChatMessage extends Component {
249238
ownMessage={ownMessage}
250239
timestamp={timestamp}
251240
verification_level={verification_level}
252-
is_hap={is_hap}
253241
/>
254242
)}
255243
</div>

web/src/components/Footer/_Footer.scss

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)