Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vessel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
vessel
Commits
243fa6b8
Commit
243fa6b8
authored
1 year ago
by
therealwolf
Browse files
Options
Downloads
Patches
Plain Diff
actually remove blocktrades
parent
6b2bd82d
No related branches found
No related tags found
1 merge request
!8
actually remove blocktrades
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/Send.js
+0
-51
0 additions, 51 deletions
app/components/Send.js
with
0 additions
and
51 deletions
app/components/Send.js
+
0
−
51
View file @
243fa6b8
...
...
@@ -72,13 +72,6 @@ const exchangeLinks = {
};
const
exchangeNotes
=
{
"
silly-einstein
"
:
(
<
Message
>
<
strong
>
Warning
<
/strong>: Blocktrades
(
@blocktrades
)
is currently blocke
d
on
Steem
.
Account
updated
to
@
silly
-
einstein
(
current
Steem
Blocktrades
account
).
<
/Message
>
),
"
deepcrypto8
"
:
(
<
Message
>
<
strong
>
Warning
<
/strong>: Binance changed their deposit address from @deepcrypto8 to @bdhivesteem. Use @bdhivesteem instead and make sure to generate a new deposit address memo as well
.
...
...
@@ -120,12 +113,8 @@ export default class Send extends Component {
});
}
componentDidMount
()
{
this
.
handleBlocktrades
(
this
.
state
.
network
);
}
componentWillUpdate
(
nextProps
,
nextState
)
{
if
(
this
.
props
.
hive
.
props
.
network
!==
nextProps
.
hive
.
props
.
network
)
{
this
.
handleBlocktrades
(
nextProps
.
hive
.
props
.
network
);
}
}
componentWillReceiveProps
=
nextProps
=>
{
if
(
nextProps
.
processing
.
account_transfer_resolved
)
{
...
...
@@ -401,46 +390,6 @@ export default class Send extends Component {
e
.
preventDefault
();
};
handleBlocktrades
=
network
=>
{
network
=
network
?
network
.
toLowerCase
()
:
"
hive
"
;
var
key
=
{
hive
:
"
blocktrades
"
,
steem
:
"
silly-einstein
"
};
var
found
=
exchangeOptions
.
find
(
x
=>
{
return
x
.
key
===
key
[
network
];
});
if
(
!
found
)
{
exchangeOptions
.
unshift
({
key
:
key
[
network
],
text
:
`Blocktrades (@
${
key
[
network
]}
)`
,
value
:
key
[
network
]
});
}
exchangeLinks
[
key
[
network
]]
=
"
https://blocktrades.us
"
;
if
(
network
===
"
hive
"
)
{
found
=
exchangeOptions
.
find
(
x
=>
{
return
x
.
key
===
key
[
"
steem
"
];
});
exchangeOptions
=
exchangeOptions
.
filter
(
x
=>
{
return
x
!==
found
;
});
delete
exchangeLinks
[
key
[
"
steem
"
]];
}
else
{
found
=
exchangeOptions
.
find
(
x
=>
{
return
x
.
key
===
key
[
"
hive
"
];
});
exchangeOptions
=
exchangeOptions
.
filter
(
x
=>
{
return
x
!==
found
;
});
delete
exchangeLinks
[
"
blocktrades
"
];
}
this
.
forceUpdate
();
};
render
()
{
const
accounts
=
this
.
props
.
account
.
accounts
;
const
keys
=
this
.
props
.
keys
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment