Skip to content

Commit

Permalink
Merge pull request #1202 from bitholla/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
abeikverdi committed Feb 17, 2022
2 parents 3b4eece + 92e5b69 commit e173267
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 45 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ steps:
- echo "Current version tag is :" && cat .tags

- name: request_hollacloud_to_run_upgrade
image: bitholla/devops-tools:drone_hollacloud-220121
image: bitholla/devops-tools:drone_hollacloud-220216
environment:
HOLLAEX_EMAIL:
from_secret: hollaex_email
Expand Down Expand Up @@ -166,7 +166,7 @@ steps:
- echo "Current version tag is :" && cat .tags

- name: request_hollacloud_to_run_upgrade
image: bitholla/devops-tools:drone_hollacloud-220208
image: bitholla/devops-tools:drone_hollacloud-220216
environment:
HOLLAEX_EMAIL:
from_secret: next_email
Expand Down
2 changes: 1 addition & 1 deletion web/src/containers/Admin/AdminFinancials/Assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const getColumns = (
className="coin-symbol-wrapper"
onClick={() => handlePreview(selectedAsset)}
>
{balance[symbol] || 0}
{balance[`${symbol}_available`] || 0}
</div>
);
},
Expand Down
4 changes: 0 additions & 4 deletions web/src/containers/Admin/AdminFinancials/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@
text-decoration: underline;
cursor: pointer;
}
.ant-table-row-expand-icon {
color: #2930ff;
border-color: #2930ff;
}
.admin-earnings-container .id-wrapper {
background-color: #288500;
width: 35px;
Expand Down
55 changes: 29 additions & 26 deletions web/src/containers/Admin/AppWrapper/Timer.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
import React from 'react';
import moment from 'moment';
import 'moment-timezone';

class Timer extends React.Component {
constructor(prop) {
super(prop);
let date = this.getTimeString();
this.state = {
time: date
};
}
constructor(prop) {
super(prop);
let date = this.getTimeString();
this.state = {
time: date,
};
}

componentDidMount () {
componentDidMount() {
this.timer = setInterval(() => {
const date = this.getTimeString();
this.setState({
time: date
})
time: date,
});
}, 1000);
}
}

getTimeString() {
let date = moment().format('hh:mm:ssA');
if (this.props.isHover) {
date = moment().format('DD/MMM/YYYY, hh:mm:ssA ').toUpperCase() + new Date().toTimeString().slice(9);
}
if (this.props.isHover) {
date =
moment().format('DD/MMM/YYYY, hh:mm:ssA ').toUpperCase() +
moment.tz.guess(true) +
' ' +
new Date().toTimeString().slice(9);
}
return date;
}

componentWillUnmount() {
if (this.timer) {
clearInterval(this.timer);
}
}
componentWillUnmount() {
if (this.timer) {
clearInterval(this.timer);
}
}

render () {
return (
<div>{this.state.time}</div>
)
}
};
render() {
return <div>{this.state.time}</div>;
}
}

export default Timer;
export default Timer;
5 changes: 4 additions & 1 deletion web/src/containers/Admin/General/Description.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ class Description extends Component {
buttonClass="green-btn minimal-btn"
onSubmit={this.props.handleSubmitReferralBadge}
disableAllFields={
plan !== 'crypto' && plan !== 'fiat' && type !== 'Enterprise'
plan !== 'crypto' &&
plan !== 'fiat' &&
type !== 'Enterprise' &&
plan !== 'boost'
}
buttonSubmitting={buttonSubmitting}
/>
Expand Down
16 changes: 8 additions & 8 deletions web/src/containers/Admin/General/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
width: 10rem !important;
}
.wizard-container .sub-title,
.ant-modal-body .sub-title,
/* .ant-modal-body .sub-title, */
.admin-content-wrapper .sub-title {
color: #ffffff;
font-size: 15px;
font-weight: bold;
}
.admin-content-wrapper .divider,
.ant-modal-body .divider {
/* .ant-modal-body .divider, */
.admin-content-wrapper .divider {
border-top: 1px solid #c4c4c4;
margin: 2rem 0;
width: 500px;
}
.wizard-container .description {
/* width: 550px; */
}
.ant-modal-body .description,
/* .ant-modal-body .description, */
.admin-content-wrapper .description,
.wizard-container .description {
color: #ffffff;
Expand Down Expand Up @@ -228,13 +228,13 @@
left: 18px;
color: #000000 !important;
}
.ant-checkbox-wrapper-checked .buy {
.general-wrapper .ant-checkbox-wrapper-checked .buy {
background-color: #ffffff;
}
.ant-checkbox-wrapper-checked .sell {
.general-wrapper .ant-checkbox-wrapper-checked .sell {
border: 1px solid #ffffff;
}
.ant-checkbox-wrapper-checked .sell .label {
.general-wrapper .ant-checkbox-wrapper-checked .sell .label {
color: #ffffff;
}
.general-wrapper .ant-radio-wrapper {
Expand Down Expand Up @@ -269,7 +269,7 @@
}
h2,
.email-config-form,
.ant-checkbox-wrapper span,
.input_field .ant-checkbox-wrapper span,
.description-wrapper,
.bottom-description,
.custom-form-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion web/src/containers/Admin/Roles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
padding: 3px 8px;
}
.admin-roles-wrapper .ant-input:focus,
.ant-input:active {
.admin-roles-wrapper .ant-input:active {
border: 1px solid #c4c4c4;
}
.admin-roles-wrapper .ant-form-item {
Expand Down
4 changes: 2 additions & 2 deletions web/src/containers/Admin/SetupWizard/Assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ const Assets = ({
<div className="coin-wrapper last">
{Object.keys(pairs).map((pair, index) => {
const { pair_2 = '', pair_base = '' } = pairs[pair] || {};
const pairData = coins[pair_2];
const pairBaseData = coins[pair_base];
const pairData = coins[pair_2] || {};
const pairBaseData = coins[pair_base] || {};
return (
<div className="asset-list" key={index}>
<div className="title-text">{pairData.fullname}</div>
Expand Down
1 change: 1 addition & 0 deletions web/src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ export const handleUpgrade = (info = {}) => {
if (
_toLower(info.plan) !== 'crypto' &&
_toLower(info.plan) !== 'fiat' &&
_toLower(info.plan) !== 'boost' &&
_toLower(info.type) !== 'enterprise'
) {
return true;
Expand Down

0 comments on commit e173267

Please sign in to comment.