2022-01-14 16:21:42 +00:00
|
|
|
import React, { Component } from 'react'
|
2022-03-15 18:20:57 +00:00
|
|
|
import {FormControlLabel, Switch, CircularProgress, Badge, Tooltip, TextField, ListItemAvatar, Button, Avatar,Paper, Grid, IconButton, Typography, Select, MenuItem, List, ListItemText, ListItem, ListItemIcon, ListItemButton, Divider, Dialog, DialogContent} from "@mui/material";
|
2022-01-28 14:30:45 +00:00
|
|
|
import MediaQuery from 'react-responsive'
|
2022-01-31 12:53:20 +00:00
|
|
|
import { Link } from 'react-router-dom'
|
2022-01-14 16:21:42 +00:00
|
|
|
|
|
|
|
// Icons
|
|
|
|
import SettingsIcon from '@mui/icons-material/Settings';
|
2022-01-15 10:21:36 +00:00
|
|
|
import PeopleIcon from '@mui/icons-material/People';
|
2022-01-14 16:21:42 +00:00
|
|
|
import InventoryIcon from '@mui/icons-material/Inventory';
|
|
|
|
import SellIcon from '@mui/icons-material/Sell';
|
|
|
|
import SmartToyIcon from '@mui/icons-material/SmartToy';
|
|
|
|
import PercentIcon from '@mui/icons-material/Percent';
|
2022-01-14 17:35:27 +00:00
|
|
|
import PriceChangeIcon from '@mui/icons-material/PriceChange';
|
2022-01-15 00:28:19 +00:00
|
|
|
import BoltIcon from '@mui/icons-material/Bolt';
|
|
|
|
import GitHubIcon from '@mui/icons-material/GitHub';
|
|
|
|
import EqualizerIcon from '@mui/icons-material/Equalizer';
|
2022-01-15 10:21:36 +00:00
|
|
|
import SendIcon from '@mui/icons-material/Send';
|
2022-01-15 15:45:44 +00:00
|
|
|
import PublicIcon from '@mui/icons-material/Public';
|
2022-01-29 19:51:26 +00:00
|
|
|
import NumbersIcon from '@mui/icons-material/Numbers';
|
2022-01-29 20:17:30 +00:00
|
|
|
import PasswordIcon from '@mui/icons-material/Password';
|
2022-01-30 15:18:03 +00:00
|
|
|
import ContentCopy from "@mui/icons-material/ContentCopy";
|
2022-02-12 13:59:59 +00:00
|
|
|
import DnsIcon from '@mui/icons-material/Dns';
|
|
|
|
import WebIcon from '@mui/icons-material/Web';
|
2022-03-05 11:05:41 +00:00
|
|
|
import BookIcon from '@mui/icons-material/Book';
|
2022-03-05 11:48:11 +00:00
|
|
|
import PersonAddAltIcon from '@mui/icons-material/PersonAddAlt';
|
2022-03-05 17:32:27 +00:00
|
|
|
import EmojiEventsIcon from '@mui/icons-material/EmojiEvents';
|
2022-03-16 15:55:48 +00:00
|
|
|
import AmbossIcon from "./icons/AmbossIcon"
|
2022-01-14 16:21:42 +00:00
|
|
|
|
2022-01-26 18:45:24 +00:00
|
|
|
// pretty numbers
|
|
|
|
function pn(x) {
|
2022-03-05 11:05:41 +00:00
|
|
|
if(x == null){
|
|
|
|
return 'null'
|
|
|
|
}else{
|
|
|
|
var parts = x.toString().split(".");
|
|
|
|
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
|
|
return parts.join(".");
|
|
|
|
}
|
2022-02-17 02:45:18 +00:00
|
|
|
}
|
2022-01-26 18:45:24 +00:00
|
|
|
|
2022-03-06 16:08:28 +00:00
|
|
|
function getCookie(name) {
|
|
|
|
let cookieValue = null;
|
|
|
|
if (document.cookie && document.cookie !== '') {
|
|
|
|
const cookies = document.cookie.split(';');
|
|
|
|
for (let i = 0; i < cookies.length; i++) {
|
|
|
|
const cookie = cookies[i].trim();
|
|
|
|
// Does this cookie string begin with the name we want?
|
|
|
|
if (cookie.substring(0, name.length + 1) === (name + '=')) {
|
|
|
|
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return cookieValue;
|
|
|
|
}
|
|
|
|
|
2022-01-14 16:21:42 +00:00
|
|
|
export default class BottomBar extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
2022-01-15 00:28:19 +00:00
|
|
|
openStatsForNerds: false,
|
2022-01-15 10:21:36 +00:00
|
|
|
openCommuniy: false,
|
2022-01-28 14:30:45 +00:00
|
|
|
openExchangeSummary:false,
|
2022-03-06 11:45:06 +00:00
|
|
|
openClaimRewards: false,
|
2022-01-18 17:52:48 +00:00
|
|
|
num_public_buy_orders: 0,
|
|
|
|
num_public_sell_orders: 0,
|
2022-03-05 11:05:41 +00:00
|
|
|
book_liquidity: 0,
|
2022-01-18 17:52:48 +00:00
|
|
|
active_robots_today: 0,
|
2022-03-03 12:47:55 +00:00
|
|
|
maker_fee: 0,
|
|
|
|
taker_fee: 0,
|
2022-03-13 12:00:21 +00:00
|
|
|
last_day_nonkyc_btc_premium: 0,
|
|
|
|
last_day_volume: 0,
|
2022-02-19 17:18:47 +00:00
|
|
|
lifetime_volume: 0,
|
2022-01-27 22:51:57 +00:00
|
|
|
robosats_running_commit_hash: '000000000000000',
|
2022-01-29 19:51:26 +00:00
|
|
|
openProfile: false,
|
|
|
|
profileShown: false,
|
2022-02-12 13:59:59 +00:00
|
|
|
alternative_site: 'robosats...',
|
|
|
|
node_id: '00000000',
|
2022-03-15 18:20:57 +00:00
|
|
|
showRewards: false,
|
2022-03-19 16:33:01 +00:00
|
|
|
referral_code: '',
|
2022-03-05 17:32:27 +00:00
|
|
|
earned_rewards: 0,
|
2022-03-06 11:45:06 +00:00
|
|
|
rewardInvoice: null,
|
2022-03-06 16:08:28 +00:00
|
|
|
badInvoice: false,
|
|
|
|
showRewardsSpinner: false,
|
|
|
|
withdrawn: false,
|
2022-01-14 16:21:42 +00:00
|
|
|
};
|
|
|
|
this.getInfo();
|
|
|
|
}
|
2022-01-29 19:51:26 +00:00
|
|
|
|
2022-01-14 16:21:42 +00:00
|
|
|
getInfo() {
|
|
|
|
this.setState(null)
|
|
|
|
fetch('/api/info/')
|
|
|
|
.then((response) => response.json())
|
2022-01-29 19:51:26 +00:00
|
|
|
.then((data) => this.setState(data) &
|
2022-02-01 19:43:33 +00:00
|
|
|
this.props.setAppState({nickname:data.nickname, loading:false}));
|
2022-01-14 16:21:42 +00:00
|
|
|
}
|
|
|
|
|
2022-01-15 00:28:19 +00:00
|
|
|
handleClickOpenStatsForNerds = () => {
|
2022-01-15 10:21:36 +00:00
|
|
|
this.setState({openStatsForNerds: true});
|
2022-01-15 00:28:19 +00:00
|
|
|
};
|
2022-01-27 22:51:57 +00:00
|
|
|
|
2022-01-15 00:28:19 +00:00
|
|
|
handleClickCloseStatsForNerds = () => {
|
2022-01-15 10:21:36 +00:00
|
|
|
this.setState({openStatsForNerds: false});
|
2022-01-15 00:28:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
StatsDialog =() =>{
|
2022-01-28 14:30:45 +00:00
|
|
|
|
2022-01-15 00:28:19 +00:00
|
|
|
return(
|
|
|
|
<Dialog
|
|
|
|
open={this.state.openStatsForNerds}
|
|
|
|
onClose={this.handleClickCloseStatsForNerds}
|
|
|
|
aria-labelledby="stats-for-nerds-dialog-title"
|
|
|
|
aria-describedby="stats-for-nerds-description"
|
|
|
|
>
|
|
|
|
<DialogContent>
|
|
|
|
<Typography component="h5" variant="h5">Stats For Nerds</Typography>
|
2022-01-26 18:45:24 +00:00
|
|
|
<List dense>
|
2022-01-15 00:28:19 +00:00
|
|
|
<Divider/>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><BoltIcon/></ListItemIcon>
|
|
|
|
<ListItemText primary={this.state.lnd_version} secondary="LND version"/>
|
|
|
|
</ListItem>
|
2022-01-15 15:45:44 +00:00
|
|
|
|
2022-02-12 13:59:59 +00:00
|
|
|
<Divider/>
|
2022-03-14 17:57:06 +00:00
|
|
|
{this.state.network == 'testnet'?
|
2022-02-12 13:59:59 +00:00
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><DnsIcon/></ListItemIcon>
|
|
|
|
<ListItemText secondary={this.state.node_alias}>
|
2022-02-12 15:46:58 +00:00
|
|
|
<a target="_blank" href={"https://1ml.com/testnet/node/"
|
2022-02-12 13:59:59 +00:00
|
|
|
+ this.state.node_id}>{this.state.node_id.slice(0, 12)+"... (1ML)"}
|
|
|
|
</a>
|
|
|
|
</ListItemText>
|
2022-03-14 17:57:06 +00:00
|
|
|
</ListItem>
|
|
|
|
:
|
|
|
|
<ListItem>
|
2022-03-16 15:55:48 +00:00
|
|
|
<ListItemIcon><AmbossIcon/></ListItemIcon>
|
2022-02-12 13:59:59 +00:00
|
|
|
<ListItemText secondary={this.state.node_alias}>
|
2022-03-14 17:57:06 +00:00
|
|
|
<a target="_blank" href={"https://amboss.space/node/"
|
|
|
|
+ this.state.node_id}>{this.state.node_id.slice(0, 12)+"... (AMBOSS)"}
|
2022-02-12 13:59:59 +00:00
|
|
|
</a>
|
|
|
|
</ListItemText>
|
|
|
|
</ListItem>
|
2022-03-14 17:57:06 +00:00
|
|
|
}
|
2022-02-12 13:59:59 +00:00
|
|
|
|
|
|
|
<Divider/>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><WebIcon/></ListItemIcon>
|
|
|
|
<ListItemText secondary={this.state.alternative_name}>
|
2022-02-12 18:22:05 +00:00
|
|
|
<a target="_blank" href={"http://"+this.state.alternative_site}>{this.state.alternative_site.slice(0, 12)+"...onion"}
|
2022-02-12 13:59:59 +00:00
|
|
|
</a>
|
|
|
|
</ListItemText>
|
|
|
|
</ListItem>
|
|
|
|
|
2022-01-15 00:28:19 +00:00
|
|
|
<Divider/>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><GitHubIcon/></ListItemIcon>
|
2022-01-25 14:46:02 +00:00
|
|
|
<ListItemText secondary="Currently running commit hash">
|
2022-02-12 15:46:58 +00:00
|
|
|
<a target="_blank" href={"https://github.com/Reckless-Satoshi/robosats/tree/"
|
2022-01-27 22:51:57 +00:00
|
|
|
+ this.state.robosats_running_commit_hash}>{this.state.robosats_running_commit_hash.slice(0, 12)+"..."}
|
2022-01-15 00:28:19 +00:00
|
|
|
</a>
|
|
|
|
</ListItemText>
|
|
|
|
</ListItem>
|
2022-01-15 15:45:44 +00:00
|
|
|
|
2022-01-15 00:28:19 +00:00
|
|
|
<Divider/>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><EqualizerIcon/></ListItemIcon>
|
2022-03-13 12:00:21 +00:00
|
|
|
<ListItemText primary={pn(this.state.last_day_volume)+" Sats"} secondary="24h contracted volume"/>
|
2022-01-15 00:28:19 +00:00
|
|
|
</ListItem>
|
2022-01-15 15:45:44 +00:00
|
|
|
|
2022-01-26 18:45:24 +00:00
|
|
|
<Divider/>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><EqualizerIcon/></ListItemIcon>
|
2022-02-19 17:18:47 +00:00
|
|
|
<ListItemText primary={pn(this.state.lifetime_volume)+" BTC"} secondary="Lifetime contracted volume"/>
|
2022-01-26 18:45:24 +00:00
|
|
|
</ListItem>
|
|
|
|
|
2022-01-15 15:45:44 +00:00
|
|
|
<Divider/>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><PublicIcon/></ListItemIcon>
|
|
|
|
<ListItemText primary="Made with ❤️ and ⚡" secondary="... somewhere on Earth!"/>
|
|
|
|
</ListItem>
|
2022-01-15 00:28:19 +00:00
|
|
|
</List>
|
2022-01-15 15:45:44 +00:00
|
|
|
|
2022-01-15 00:28:19 +00:00
|
|
|
</DialogContent>
|
|
|
|
</Dialog>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-01-15 10:21:36 +00:00
|
|
|
handleClickOpenCommunity = () => {
|
|
|
|
this.setState({openCommuniy: true});
|
|
|
|
};
|
|
|
|
handleClickCloseCommunity = () => {
|
|
|
|
this.setState({openCommuniy: false});
|
|
|
|
};
|
|
|
|
|
|
|
|
CommunityDialog =() =>{
|
2022-01-28 14:30:45 +00:00
|
|
|
|
2022-01-15 10:21:36 +00:00
|
|
|
return(
|
|
|
|
<Dialog
|
|
|
|
open={this.state.openCommuniy}
|
|
|
|
onClose={this.handleClickCloseCommunity}
|
|
|
|
aria-labelledby="community-dialog-title"
|
|
|
|
aria-describedby="community-description"
|
|
|
|
>
|
|
|
|
<DialogContent>
|
|
|
|
<Typography component="h5" variant="h5">Community</Typography>
|
|
|
|
<Typography component="body2" variant="body2">
|
|
|
|
<p> Support is only offered via public channels.
|
2022-01-17 16:41:55 +00:00
|
|
|
Join our Telegram community if you have
|
2022-01-15 15:45:44 +00:00
|
|
|
questions or want to hang out with other cool robots.
|
2022-01-17 16:41:55 +00:00
|
|
|
Please, use our Github Issues if you find a bug or want
|
|
|
|
to see new features!
|
2022-01-15 10:21:36 +00:00
|
|
|
</p>
|
|
|
|
</Typography>
|
|
|
|
<List>
|
|
|
|
<Divider/>
|
|
|
|
|
2022-02-21 10:05:19 +00:00
|
|
|
<ListItemButton component="a" target="_blank" href="https://t.me/robosats">
|
2022-01-15 10:21:36 +00:00
|
|
|
<ListItemIcon><SendIcon/></ListItemIcon>
|
|
|
|
<ListItemText primary="Join the RoboSats group"
|
|
|
|
secondary="Telegram (English / Main)"/>
|
|
|
|
</ListItemButton>
|
|
|
|
<Divider/>
|
|
|
|
|
2022-02-21 10:05:19 +00:00
|
|
|
<ListItemButton component="a" target="_blank" href="https://t.me/robosats_es">
|
2022-01-15 10:21:36 +00:00
|
|
|
<ListItemIcon><SendIcon/></ListItemIcon>
|
|
|
|
<ListItemText primary="Unase al grupo RoboSats"
|
|
|
|
secondary="Telegram (Español)"/>
|
|
|
|
</ListItemButton>
|
|
|
|
<Divider/>
|
|
|
|
|
2022-02-21 10:05:19 +00:00
|
|
|
<ListItemButton component="a" target="_blank" href="https://github.com/Reckless-Satoshi/robosats/issues">
|
2022-01-15 10:21:36 +00:00
|
|
|
<ListItemIcon><GitHubIcon/></ListItemIcon>
|
|
|
|
<ListItemText primary="Tell us about a new feature or a bug"
|
|
|
|
secondary="Github Issues - The Robotic Satoshis Open Source Project"/>
|
|
|
|
</ListItemButton>
|
|
|
|
|
|
|
|
</List>
|
|
|
|
</DialogContent>
|
|
|
|
</Dialog>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
handleClickOpenProfile = () => {
|
|
|
|
this.getInfo();
|
|
|
|
this.setState({openProfile: true, profileShown: true});
|
|
|
|
};
|
|
|
|
handleClickCloseProfile = () => {
|
|
|
|
this.setState({openProfile: false});
|
|
|
|
};
|
|
|
|
|
2022-03-06 16:08:28 +00:00
|
|
|
handleSubmitInvoiceClicked=()=>{
|
|
|
|
this.setState({
|
|
|
|
badInvoice:false,
|
|
|
|
showRewardsSpinner: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
const requestOptions = {
|
|
|
|
method: 'POST',
|
|
|
|
headers: {'Content-Type':'application/json', 'X-CSRFToken': getCookie('csrftoken'),},
|
|
|
|
body: JSON.stringify({
|
|
|
|
'invoice': this.state.rewardInvoice,
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
fetch('/api/reward/', requestOptions)
|
|
|
|
.then((response) => response.json())
|
|
|
|
.then((data) => console.log(data) & this.setState({
|
|
|
|
badInvoice:data.bad_invoice,
|
|
|
|
openClaimRewards: data.successful_withdrawal ? false : true,
|
|
|
|
earned_rewards: data.successful_withdrawal ? 0 : this.state.earned_rewards,
|
|
|
|
withdrawn: data.successful_withdrawal ? true : false,
|
|
|
|
showRewardsSpinner: false,
|
|
|
|
}));
|
2022-03-06 11:45:06 +00:00
|
|
|
}
|
|
|
|
|
2022-03-19 16:33:01 +00:00
|
|
|
getHost(){
|
|
|
|
var url = (window.location != window.parent.location) ? this.getHost(document.referrer) : document.location.href;
|
|
|
|
return url.split('/')[2]
|
|
|
|
}
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
dialogProfile =() =>{
|
|
|
|
return(
|
|
|
|
<Dialog
|
|
|
|
open={this.state.openProfile}
|
|
|
|
onClose={this.handleClickCloseProfile}
|
|
|
|
aria-labelledby="profile-title"
|
|
|
|
aria-describedby="profile-description"
|
|
|
|
>
|
|
|
|
<DialogContent>
|
|
|
|
<Typography component="h5" variant="h5">Your Profile</Typography>
|
|
|
|
<List>
|
|
|
|
<Divider/>
|
|
|
|
<ListItem className="profileNickname">
|
2022-01-29 20:17:30 +00:00
|
|
|
<ListItemText secondary="Your robot">
|
2022-01-29 19:51:26 +00:00
|
|
|
<Typography component="h6" variant="h6">
|
|
|
|
{this.props.nickname ? "⚡"+this.props.nickname+"⚡" : ""}
|
|
|
|
</Typography>
|
|
|
|
</ListItemText>
|
|
|
|
<ListItemAvatar>
|
2022-01-30 15:18:03 +00:00
|
|
|
<Avatar className='profileAvatar'
|
2022-01-29 19:51:26 +00:00
|
|
|
sx={{ width: 65, height:65 }}
|
2022-02-01 19:43:33 +00:00
|
|
|
alt={this.props.nickname}
|
2022-01-29 19:51:26 +00:00
|
|
|
src={this.props.nickname ? window.location.origin +'/static/assets/avatars/' + this.props.nickname + '.png' : null}
|
|
|
|
/>
|
|
|
|
</ListItemAvatar>
|
|
|
|
</ListItem>
|
2022-03-05 11:48:11 +00:00
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Divider/>
|
|
|
|
{this.state.active_order_id ?
|
|
|
|
// TODO Link to router and do this.props.history.push
|
2022-01-31 12:53:20 +00:00
|
|
|
<ListItemButton onClick={this.handleClickCloseProfile} to={'/order/'+this.state.active_order_id} component={Link}>
|
2022-01-29 19:51:26 +00:00
|
|
|
<ListItemIcon>
|
2022-01-30 13:18:32 +00:00
|
|
|
<Badge badgeContent="" color="primary">
|
|
|
|
<NumbersIcon color="primary"/>
|
|
|
|
</Badge>
|
2022-01-29 19:51:26 +00:00
|
|
|
</ListItemIcon>
|
2022-01-29 20:17:30 +00:00
|
|
|
<ListItemText primary={'One active order #'+this.state.active_order_id} secondary="Your current order"/>
|
2022-01-29 19:51:26 +00:00
|
|
|
</ListItemButton>
|
|
|
|
:
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon><NumbersIcon/></ListItemIcon>
|
2022-01-29 20:29:33 +00:00
|
|
|
<ListItemText primary="No active orders" secondary="Your current order"/>
|
2022-01-29 19:51:26 +00:00
|
|
|
</ListItem>
|
|
|
|
}
|
2022-03-05 11:48:11 +00:00
|
|
|
|
2022-01-29 20:17:30 +00:00
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon>
|
|
|
|
<PasswordIcon/>
|
|
|
|
</ListItemIcon>
|
2022-03-12 11:24:11 +00:00
|
|
|
<ListItemText secondary="Your token (will not remain here)">
|
2022-01-29 20:17:30 +00:00
|
|
|
{this.props.token ?
|
|
|
|
<TextField
|
|
|
|
disabled
|
2022-03-12 11:24:11 +00:00
|
|
|
label='Back it up!'
|
2022-01-29 20:17:30 +00:00
|
|
|
value={this.props.token }
|
|
|
|
variant='filled'
|
2022-01-30 15:18:03 +00:00
|
|
|
size='small'
|
|
|
|
InputProps={{
|
|
|
|
endAdornment:
|
2022-03-05 17:32:27 +00:00
|
|
|
<Tooltip disableHoverListener enterTouchDelay="0" title="Copied!">
|
2022-03-05 11:48:11 +00:00
|
|
|
<IconButton onClick= {()=>navigator.clipboard.writeText(this.props.token)}>
|
|
|
|
<ContentCopy />
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>,
|
2022-01-30 15:18:03 +00:00
|
|
|
}}
|
|
|
|
/>
|
2022-01-29 20:17:30 +00:00
|
|
|
:
|
|
|
|
'Cannot remember'}
|
2022-03-05 11:48:11 +00:00
|
|
|
</ListItemText>
|
|
|
|
</ListItem>
|
|
|
|
|
2022-03-15 18:20:57 +00:00
|
|
|
<Divider/>
|
|
|
|
|
|
|
|
<Grid spacing={1} align="center">
|
|
|
|
<FormControlLabel labelPlacement="start"control={
|
|
|
|
<Switch
|
|
|
|
checked={this.state.showRewards}
|
|
|
|
onChange={()=> this.setState({showRewards: !this.state.showRewards})}/>}
|
|
|
|
label="Rewards and compensations"
|
2022-03-05 11:48:11 +00:00
|
|
|
/>
|
2022-03-15 18:20:57 +00:00
|
|
|
</Grid>
|
2022-03-06 11:45:06 +00:00
|
|
|
|
2022-03-15 18:20:57 +00:00
|
|
|
<div style={{ display: this.state.showRewards ? '':'none'}}>
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon>
|
|
|
|
<PersonAddAltIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText secondary="Share to earn 100 Sats per trade">
|
|
|
|
<TextField
|
|
|
|
label='Your referral link'
|
2022-03-19 16:33:01 +00:00
|
|
|
value={this.getHost()+'/ref/'+this.state.referral_code}
|
2022-03-15 18:20:57 +00:00
|
|
|
// variant='filled'
|
|
|
|
size='small'
|
|
|
|
InputProps={{
|
|
|
|
endAdornment:
|
|
|
|
<Tooltip disableHoverListener enterTouchDelay="0" title="Copied!">
|
2022-03-19 16:33:01 +00:00
|
|
|
<IconButton onClick= {()=>navigator.clipboard.writeText('http://'+this.getHost()+'/ref/'+this.state.referral_code)}>
|
2022-03-15 18:20:57 +00:00
|
|
|
<ContentCopy />
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>,
|
2022-03-06 11:45:06 +00:00
|
|
|
}}
|
|
|
|
/>
|
2022-03-15 18:20:57 +00:00
|
|
|
</ListItemText>
|
|
|
|
</ListItem>
|
|
|
|
|
|
|
|
<ListItem>
|
|
|
|
<ListItemIcon>
|
|
|
|
<EmojiEventsIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
{!this.state.openClaimRewards ?
|
|
|
|
<ListItemText secondary="Your earned rewards">
|
|
|
|
<Grid container xs={12}>
|
|
|
|
<Grid item xs={9}>
|
|
|
|
<Typography>{this.state.earned_rewards+" Sats"}</Typography>
|
|
|
|
</Grid>
|
|
|
|
<Grid item xs={3}>
|
|
|
|
<Button disabled={this.state.earned_rewards==0? true : false} onClick={() => this.setState({openClaimRewards:true})} variant="contained" size="small">Claim</Button>
|
|
|
|
</Grid>
|
2022-03-06 11:45:06 +00:00
|
|
|
</Grid>
|
2022-03-15 18:20:57 +00:00
|
|
|
</ListItemText>
|
|
|
|
:
|
|
|
|
<form style={{maxWidth: 270}}>
|
|
|
|
<Grid alignItems="stretch" style={{ display: "flex"}} align="center">
|
|
|
|
<Grid item alignItems="stretch" style={{ display: "flex" }} align="center">
|
|
|
|
<TextField
|
|
|
|
error={this.state.badInvoice}
|
|
|
|
helperText={this.state.badInvoice ? this.state.badInvoice : "" }
|
|
|
|
label={"Invoice for " + this.state.earned_rewards + " Sats"}
|
|
|
|
//variant="standard"
|
|
|
|
size="small"
|
|
|
|
value={this.state.rewardInvoice}
|
|
|
|
onChange={e => {
|
|
|
|
this.setState({ rewardInvoice: e.target.value });
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</Grid>
|
|
|
|
<Grid item alignItems="stretch" style={{ display: "flex" }}>
|
|
|
|
<Button sx={{maxHeight:38}} onClick={this.handleSubmitInvoiceClicked} variant="contained" color="primary" size="small" > Submit </Button>
|
|
|
|
</Grid>
|
2022-03-06 11:45:06 +00:00
|
|
|
</Grid>
|
2022-03-15 18:20:57 +00:00
|
|
|
</form>
|
|
|
|
}
|
|
|
|
</ListItem>
|
2022-01-29 20:17:30 +00:00
|
|
|
|
2022-03-15 18:20:57 +00:00
|
|
|
{this.state.showRewardsSpinner?
|
|
|
|
<div style={{display: 'flex', justifyContent: 'center'}}>
|
|
|
|
<CircularProgress/>
|
|
|
|
</div>
|
|
|
|
:""}
|
|
|
|
|
|
|
|
{this.state.withdrawn?
|
|
|
|
<div style={{display: 'flex', justifyContent: 'center'}}>
|
|
|
|
<Typography color="primary" variant="body2"><b>There it goes, thank you!🥇</b></Typography>
|
|
|
|
</div>
|
|
|
|
:""}
|
2022-03-06 16:08:28 +00:00
|
|
|
|
2022-03-15 18:20:57 +00:00
|
|
|
</div>
|
2022-01-29 19:51:26 +00:00
|
|
|
</List>
|
|
|
|
</DialogContent>
|
|
|
|
|
|
|
|
</Dialog>
|
|
|
|
)
|
|
|
|
}
|
2022-01-15 10:21:36 +00:00
|
|
|
|
2022-01-28 14:30:45 +00:00
|
|
|
bottomBarDesktop =()=>{
|
|
|
|
return(
|
|
|
|
<Paper elevation={6} style={{height:40}}>
|
2022-01-15 00:28:19 +00:00
|
|
|
<this.StatsDialog/>
|
2022-01-15 10:21:36 +00:00
|
|
|
<this.CommunityDialog/>
|
2022-01-29 19:51:26 +00:00
|
|
|
<this.dialogProfile/>
|
2022-03-03 15:40:56 +00:00
|
|
|
<this.exchangeSummaryDialog/>
|
2022-01-14 16:21:42 +00:00
|
|
|
<Grid container xs={12}>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-03-02 23:36:11 +00:00
|
|
|
<Grid item xs={1.9}>
|
2022-02-01 22:05:49 +00:00
|
|
|
<div style={{display: this.props.avatarLoaded ? '':'none'}}>
|
2022-01-29 19:51:26 +00:00
|
|
|
<ListItemButton onClick={this.handleClickOpenProfile} >
|
2022-03-10 21:35:16 +00:00
|
|
|
<Tooltip open={this.state.earned_rewards > 0 ? true: false} title="You can claim satoshis!">
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip open={(this.state.active_order_id > 0 & !this.state.profileShown & this.props.avatarLoaded) ? true: false}
|
|
|
|
title="You have an active order">
|
2022-01-29 19:51:26 +00:00
|
|
|
<ListItemAvatar sx={{ width: 30, height: 30 }} >
|
2022-01-30 13:18:32 +00:00
|
|
|
<Badge badgeContent={(this.state.active_order_id > 0 & !this.state.profileShown) ? "": null} color="primary">
|
2022-01-30 15:18:03 +00:00
|
|
|
<Avatar className='flippedSmallAvatar' sx={{margin: 0, top: -13}}
|
2022-01-29 19:51:26 +00:00
|
|
|
alt={this.props.nickname}
|
2022-02-01 22:05:49 +00:00
|
|
|
imgProps={{
|
|
|
|
onLoad:() => this.props.setAppState({avatarLoaded: true}),
|
|
|
|
}}
|
|
|
|
src={this.props.nickname ? window.location.origin +'/static/assets/avatars/' + this.props.nickname + '.png' : null}
|
2022-01-29 19:51:26 +00:00
|
|
|
/>
|
|
|
|
</Badge>
|
|
|
|
</ListItemAvatar>
|
2022-02-01 22:05:49 +00:00
|
|
|
</Tooltip>
|
2022-03-10 21:35:16 +00:00
|
|
|
</Tooltip>
|
2022-02-01 22:05:49 +00:00
|
|
|
<ListItemText primary={this.props.nickname}/>
|
|
|
|
</ListItemButton>
|
|
|
|
</div>
|
2022-01-14 16:21:42 +00:00
|
|
|
</Grid>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-03-02 23:36:11 +00:00
|
|
|
<Grid item xs={1.9}>
|
2022-01-14 16:21:42 +00:00
|
|
|
<ListItem className="bottomItem">
|
|
|
|
<ListItemIcon size="small">
|
2022-03-03 15:40:56 +00:00
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary}><InventoryIcon/></IconButton>
|
2022-01-14 16:21:42 +00:00
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
primary={this.state.num_public_buy_orders}
|
|
|
|
secondary="Public Buy Orders" />
|
|
|
|
</ListItem>
|
|
|
|
</Grid>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-03-02 23:36:11 +00:00
|
|
|
<Grid item xs={1.9}>
|
2022-01-14 16:21:42 +00:00
|
|
|
<ListItem className="bottomItem">
|
|
|
|
<ListItemIcon size="small">
|
2022-03-03 15:40:56 +00:00
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary}><SellIcon/></IconButton>
|
2022-01-14 16:21:42 +00:00
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
primary={this.state.num_public_sell_orders}
|
|
|
|
secondary="Public Sell Orders" />
|
|
|
|
</ListItem>
|
|
|
|
</Grid>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-03-02 23:36:11 +00:00
|
|
|
<Grid item xs={1.9}>
|
2022-01-14 16:21:42 +00:00
|
|
|
<ListItem className="bottomItem">
|
|
|
|
<ListItemIcon size="small">
|
2022-03-03 15:40:56 +00:00
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary}><SmartToyIcon/></IconButton>
|
2022-01-14 16:21:42 +00:00
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
2022-01-18 17:52:48 +00:00
|
|
|
primary={this.state.active_robots_today}
|
|
|
|
secondary="Today Active Robots" />
|
2022-01-14 16:21:42 +00:00
|
|
|
</ListItem>
|
|
|
|
</Grid>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-03-02 23:36:11 +00:00
|
|
|
<Grid item xs={1.9}>
|
2022-01-14 16:21:42 +00:00
|
|
|
<ListItem className="bottomItem">
|
|
|
|
<ListItemIcon size="small">
|
2022-03-03 15:40:56 +00:00
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary}><PriceChangeIcon/></IconButton>
|
2022-01-14 16:21:42 +00:00
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
2022-03-13 12:00:21 +00:00
|
|
|
primary={this.state.last_day_nonkyc_btc_premium+"%"}
|
|
|
|
secondary="24h Avg Premium" />
|
2022-01-14 16:21:42 +00:00
|
|
|
</ListItem>
|
|
|
|
</Grid>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-03-02 23:36:11 +00:00
|
|
|
<Grid item xs={1.5}>
|
2022-01-14 17:35:27 +00:00
|
|
|
<ListItem className="bottomItem">
|
|
|
|
<ListItemIcon size="small">
|
2022-03-03 15:40:56 +00:00
|
|
|
< IconButton onClick={this.handleClickOpenExchangeSummary}><PercentIcon/></IconButton>
|
2022-01-14 17:35:27 +00:00
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
2022-03-03 12:47:55 +00:00
|
|
|
primary={(this.state.maker_fee + this.state.taker_fee)*100}
|
2022-01-29 19:51:26 +00:00
|
|
|
secondary="Trade Fee" />
|
2022-01-14 17:35:27 +00:00
|
|
|
</ListItem>
|
|
|
|
</Grid>
|
|
|
|
|
2022-01-14 16:21:42 +00:00
|
|
|
<Grid container item xs={1}>
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={6}>
|
2022-01-14 16:21:42 +00:00
|
|
|
<Select
|
|
|
|
size = 'small'
|
|
|
|
defaultValue={1}
|
|
|
|
inputProps={{
|
|
|
|
style: {textAlign:"center"}
|
|
|
|
}}>
|
|
|
|
<MenuItem value={1}>EN</MenuItem>
|
|
|
|
</Select>
|
|
|
|
</Grid>
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={3}>
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip enterTouchDelay="250" title="Show community and support links">
|
2022-01-15 10:21:36 +00:00
|
|
|
<IconButton
|
|
|
|
color="primary"
|
2022-01-29 19:51:26 +00:00
|
|
|
aria-label="Community"
|
2022-01-15 10:21:36 +00:00
|
|
|
onClick={this.handleClickOpenCommunity} >
|
|
|
|
<PeopleIcon />
|
2022-01-14 16:21:42 +00:00
|
|
|
</IconButton>
|
2022-02-01 22:05:49 +00:00
|
|
|
</Tooltip>
|
2022-01-14 16:21:42 +00:00
|
|
|
</Grid>
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={3}>
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip enterTouchDelay="250" title="Show stats for nerds">
|
|
|
|
<IconButton color="primary"
|
|
|
|
aria-label="Stats for Nerds"
|
|
|
|
onClick={this.handleClickOpenStatsForNerds} >
|
|
|
|
<SettingsIcon />
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-01-29 19:51:26 +00:00
|
|
|
</Grid>
|
2022-01-14 17:35:27 +00:00
|
|
|
|
2022-01-14 16:21:42 +00:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Paper>
|
2022-01-28 14:30:45 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
handleClickOpenExchangeSummary = () => {
|
2022-01-29 19:51:26 +00:00
|
|
|
this.getInfo();
|
2022-01-28 14:30:45 +00:00
|
|
|
this.setState({openExchangeSummary: true});
|
|
|
|
};
|
|
|
|
handleClickCloseExchangeSummary = () => {
|
|
|
|
this.setState({openExchangeSummary: false});
|
|
|
|
};
|
|
|
|
|
2022-03-03 15:40:56 +00:00
|
|
|
exchangeSummaryDialog =() =>{
|
2022-01-28 14:30:45 +00:00
|
|
|
return(
|
|
|
|
<Dialog
|
|
|
|
open={this.state.openExchangeSummary}
|
|
|
|
onClose={this.handleClickCloseExchangeSummary}
|
|
|
|
aria-labelledby="exchange-summary-title"
|
|
|
|
aria-describedby="exchange-summary-description"
|
|
|
|
>
|
|
|
|
<DialogContent>
|
|
|
|
<Typography component="h5" variant="h5">Exchange Summary</Typography>
|
|
|
|
<List dense>
|
|
|
|
<ListItem >
|
|
|
|
<ListItemIcon size="small">
|
|
|
|
<InventoryIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
primary={this.state.num_public_buy_orders}
|
|
|
|
secondary="Public buy orders" />
|
|
|
|
</ListItem>
|
|
|
|
<Divider/>
|
|
|
|
|
|
|
|
<ListItem >
|
|
|
|
<ListItemIcon size="small">
|
|
|
|
<SellIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
primary={this.state.num_public_sell_orders}
|
|
|
|
secondary="Public sell orders" />
|
|
|
|
</ListItem>
|
|
|
|
<Divider/>
|
|
|
|
|
2022-03-05 11:05:41 +00:00
|
|
|
<ListItem >
|
|
|
|
<ListItemIcon size="small">
|
|
|
|
<BookIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
primary={pn(this.state.book_liquidity)+" Sats"}
|
|
|
|
secondary="Book liquidity" />
|
|
|
|
</ListItem>
|
|
|
|
<Divider/>
|
|
|
|
|
2022-01-28 14:30:45 +00:00
|
|
|
<ListItem >
|
|
|
|
<ListItemIcon size="small">
|
|
|
|
<SmartToyIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
primary={this.state.active_robots_today}
|
|
|
|
secondary="Today active robots" />
|
|
|
|
</ListItem>
|
|
|
|
<Divider/>
|
|
|
|
|
|
|
|
<ListItem >
|
|
|
|
<ListItemIcon size="small">
|
|
|
|
<PriceChangeIcon/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
2022-03-13 12:00:21 +00:00
|
|
|
primary={this.state.last_day_nonkyc_btc_premium+"%"}
|
|
|
|
secondary="24h non-KYC average premium" />
|
2022-01-28 14:30:45 +00:00
|
|
|
</ListItem>
|
|
|
|
<Divider/>
|
|
|
|
|
|
|
|
<ListItem >
|
|
|
|
<ListItemIcon size="small">
|
|
|
|
<PercentIcon/>
|
|
|
|
</ListItemIcon>
|
2022-03-07 21:46:52 +00:00
|
|
|
<Grid container xs={12}>
|
|
|
|
<Grid item xs={6}>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
secondary="Maker fee">
|
|
|
|
{(this.state.maker_fee*100).toFixed(3)}%
|
|
|
|
</ListItemText>
|
|
|
|
</Grid>
|
|
|
|
<Grid item xs={6}>
|
|
|
|
<ListItemText
|
|
|
|
primaryTypographyProps={{fontSize: '14px'}}
|
|
|
|
secondaryTypographyProps={{fontSize: '12px'}}
|
|
|
|
secondary="Taker fee">
|
|
|
|
{(this.state.taker_fee*100).toFixed(3)}%
|
|
|
|
</ListItemText>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2022-01-28 14:30:45 +00:00
|
|
|
</ListItem>
|
|
|
|
</List>
|
|
|
|
|
|
|
|
</DialogContent>
|
|
|
|
</Dialog>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
bottomBarPhone =()=>{
|
|
|
|
return(
|
|
|
|
<Paper elevation={6} style={{height:40}}>
|
|
|
|
<this.StatsDialog/>
|
|
|
|
<this.CommunityDialog/>
|
2022-03-03 15:40:56 +00:00
|
|
|
<this.exchangeSummaryDialog/>
|
2022-01-29 19:51:26 +00:00
|
|
|
<this.dialogProfile/>
|
2022-01-28 14:30:45 +00:00
|
|
|
<Grid container xs={12}>
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={1.6}>
|
2022-02-01 19:43:33 +00:00
|
|
|
<div style={{display: this.props.avatarLoaded ? '':'none'}}>
|
2022-03-10 21:35:16 +00:00
|
|
|
<Tooltip open={this.state.earned_rewards > 0 ? true: false} title="You can claim satoshis!">
|
|
|
|
<Tooltip open={(this.state.active_order_id > 0 & !this.state.profileShown & this.props.avatarLoaded) ? true: false}
|
|
|
|
title="You have an active order">
|
2022-02-02 09:29:05 +00:00
|
|
|
<IconButton onClick={this.handleClickOpenProfile} sx={{margin: 0, bottom: 17, right: 8}} >
|
2022-02-01 22:05:49 +00:00
|
|
|
<Badge badgeContent={(this.state.active_order_id >0 & !this.state.profileShown) ? "": null} color="primary">
|
|
|
|
<Avatar className='phoneFlippedSmallAvatar'
|
2022-02-02 09:29:05 +00:00
|
|
|
sx={{ width: 55, height:55 }}
|
2022-02-01 22:05:49 +00:00
|
|
|
alt={this.props.nickname}
|
|
|
|
imgProps={{
|
|
|
|
onLoad:() => this.props.setAppState({avatarLoaded: true}),
|
|
|
|
}}
|
|
|
|
src={this.props.nickname ? window.location.origin +'/static/assets/avatars/' + this.props.nickname + '.png' : null}
|
|
|
|
/>
|
|
|
|
</Badge>
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-03-10 21:35:16 +00:00
|
|
|
</Tooltip>
|
2022-02-01 19:43:33 +00:00
|
|
|
</div>
|
2022-01-28 14:30:45 +00:00
|
|
|
</Grid>
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={1.6} align="center">
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip enterTouchDelay="300" title="Number of public BUY orders">
|
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary} >
|
|
|
|
<Badge badgeContent={this.state.num_public_buy_orders} color="action">
|
|
|
|
<InventoryIcon />
|
|
|
|
</Badge>
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-01-28 14:30:45 +00:00
|
|
|
</Grid>
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={1.6} align="center">
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip enterTouchDelay="300" title="Number of public SELL orders">
|
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary} >
|
|
|
|
<Badge badgeContent={this.state.num_public_sell_orders} color="action">
|
|
|
|
<SellIcon />
|
|
|
|
</Badge>
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-01-28 14:30:45 +00:00
|
|
|
</Grid>
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={1.6} align="center">
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip enterTouchDelay="300" title="Today active robots">
|
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary} >
|
|
|
|
<Badge badgeContent={this.state.active_robots_today} color="action">
|
|
|
|
<SmartToyIcon />
|
|
|
|
</Badge>
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-01-28 14:30:45 +00:00
|
|
|
</Grid>
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={1.8} align="center">
|
2022-03-13 12:00:21 +00:00
|
|
|
<Tooltip enterTouchDelay="300" title="24h non-KYC bitcoin premium">
|
2022-02-01 22:05:49 +00:00
|
|
|
<IconButton onClick={this.handleClickOpenExchangeSummary} >
|
2022-03-13 12:00:21 +00:00
|
|
|
<Badge badgeContent={this.state.last_day_nonkyc_btc_premium+"%"} color="action">
|
2022-02-01 22:05:49 +00:00
|
|
|
<PriceChangeIcon />
|
|
|
|
</Badge>
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-01-28 14:30:45 +00:00
|
|
|
</Grid>
|
|
|
|
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid container item xs={3.8}>
|
|
|
|
<Grid item xs={6}>
|
2022-01-28 14:30:45 +00:00
|
|
|
<Select
|
|
|
|
size = 'small'
|
|
|
|
defaultValue={1}
|
|
|
|
inputProps={{
|
|
|
|
style: {textAlign:"center"}
|
|
|
|
}}>
|
|
|
|
<MenuItem value={1}>EN</MenuItem>
|
|
|
|
</Select>
|
|
|
|
</Grid>
|
2022-01-29 19:51:26 +00:00
|
|
|
<Grid item xs={3}>
|
2022-02-01 22:05:49 +00:00
|
|
|
<Tooltip enterTouchDelay="250" title="Show community and support links">
|
2022-01-28 14:30:45 +00:00
|
|
|
<IconButton
|
|
|
|
color="primary"
|
2022-01-29 19:51:26 +00:00
|
|
|
aria-label="Community"
|
2022-01-28 14:30:45 +00:00
|
|
|
onClick={this.handleClickOpenCommunity} >
|
|
|
|
<PeopleIcon />
|
|
|
|
</IconButton>
|
2022-02-01 22:05:49 +00:00
|
|
|
</Tooltip>
|
|
|
|
</Grid>
|
|
|
|
<Grid item xs={3}>
|
|
|
|
<Tooltip enterTouchDelay="250" title="Show stats for nerds">
|
|
|
|
<IconButton color="primary"
|
|
|
|
aria-label="Stats for Nerds"
|
|
|
|
onClick={this.handleClickOpenStatsForNerds} >
|
|
|
|
<SettingsIcon />
|
|
|
|
</IconButton>
|
|
|
|
</Tooltip>
|
2022-01-28 14:30:45 +00:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Paper>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<MediaQuery minWidth={1200}>
|
|
|
|
<this.bottomBarDesktop/>
|
|
|
|
</MediaQuery>
|
|
|
|
|
|
|
|
<MediaQuery maxWidth={1199}>
|
|
|
|
<this.bottomBarPhone/>
|
|
|
|
</MediaQuery>
|
|
|
|
</div>
|
2022-01-14 16:21:42 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|