mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 11:26:24 +00:00
Add community pop up
This commit is contained in:
parent
a995a4e2ea
commit
a03cfdc01d
@ -1,9 +1,9 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import {Paper, Grid, IconButton, Typography, Select, MenuItem, List, ListItemText, ListItem, ListItemIcon, Divider, Dialog, DialogContent} from "@mui/material";
|
import {Paper, Grid, IconButton, Typography, Select, MenuItem, List, ListItemText, ListItem, ListItemIcon, ListItemButton, Divider, Dialog, DialogContent} from "@mui/material";
|
||||||
|
|
||||||
// Icons
|
// Icons
|
||||||
import SettingsIcon from '@mui/icons-material/Settings';
|
import SettingsIcon from '@mui/icons-material/Settings';
|
||||||
import SupportAgentIcon from '@mui/icons-material/SupportAgent';
|
import PeopleIcon from '@mui/icons-material/People';
|
||||||
import InventoryIcon from '@mui/icons-material/Inventory';
|
import InventoryIcon from '@mui/icons-material/Inventory';
|
||||||
import SellIcon from '@mui/icons-material/Sell';
|
import SellIcon from '@mui/icons-material/Sell';
|
||||||
import SmartToyIcon from '@mui/icons-material/SmartToy';
|
import SmartToyIcon from '@mui/icons-material/SmartToy';
|
||||||
@ -12,12 +12,14 @@ import PriceChangeIcon from '@mui/icons-material/PriceChange';
|
|||||||
import BoltIcon from '@mui/icons-material/Bolt';
|
import BoltIcon from '@mui/icons-material/Bolt';
|
||||||
import GitHubIcon from '@mui/icons-material/GitHub';
|
import GitHubIcon from '@mui/icons-material/GitHub';
|
||||||
import EqualizerIcon from '@mui/icons-material/Equalizer';
|
import EqualizerIcon from '@mui/icons-material/Equalizer';
|
||||||
|
import SendIcon from '@mui/icons-material/Send';
|
||||||
|
|
||||||
export default class BottomBar extends Component {
|
export default class BottomBar extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
openStatsForNerds: false,
|
openStatsForNerds: false,
|
||||||
|
openCommuniy: false,
|
||||||
num_public_buy_orders: null,
|
num_public_buy_orders: null,
|
||||||
num_active_robotsats: null,
|
num_active_robotsats: null,
|
||||||
num_public_sell_orders: null,
|
num_public_sell_orders: null,
|
||||||
@ -44,7 +46,6 @@ export default class BottomBar extends Component {
|
|||||||
handleClickOpenStatsForNerds = () => {
|
handleClickOpenStatsForNerds = () => {
|
||||||
this.setState({openStatsForNerds: true});
|
this.setState({openStatsForNerds: true});
|
||||||
};
|
};
|
||||||
|
|
||||||
handleClickCloseStatsForNerds = () => {
|
handleClickCloseStatsForNerds = () => {
|
||||||
this.setState({openStatsForNerds: false});
|
this.setState({openStatsForNerds: false});
|
||||||
};
|
};
|
||||||
@ -85,10 +86,66 @@ export default class BottomBar extends Component {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleClickOpenCommunity = () => {
|
||||||
|
this.setState({openCommuniy: true});
|
||||||
|
};
|
||||||
|
handleClickCloseCommunity = () => {
|
||||||
|
this.setState({openCommuniy: false});
|
||||||
|
};
|
||||||
|
|
||||||
|
CommunityDialog =() =>{
|
||||||
|
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.
|
||||||
|
For questions and hanging out with other robots
|
||||||
|
join the Telegram Groups. If you find a bug
|
||||||
|
or want to see new features, use the Github
|
||||||
|
Issues page.
|
||||||
|
</p>
|
||||||
|
</Typography>
|
||||||
|
<List>
|
||||||
|
<Divider/>
|
||||||
|
|
||||||
|
<ListItemButton component="a" href="https://t.me/robosats">
|
||||||
|
<ListItemIcon><SendIcon/></ListItemIcon>
|
||||||
|
<ListItemText primary="Join the RoboSats group"
|
||||||
|
secondary="Telegram (English / Main)"/>
|
||||||
|
</ListItemButton>
|
||||||
|
<Divider/>
|
||||||
|
|
||||||
|
<ListItemButton component="a" href="https://t.me/robosats_es">
|
||||||
|
<ListItemIcon><SendIcon/></ListItemIcon>
|
||||||
|
<ListItemText primary="Unase al grupo RoboSats"
|
||||||
|
secondary="Telegram (Español)"/>
|
||||||
|
</ListItemButton>
|
||||||
|
<Divider/>
|
||||||
|
|
||||||
|
<ListItemButton component="a" href="https://github.com/Reckless-Satoshi/robosats/issues">
|
||||||
|
<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>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Paper elevation={6} style={{height:40}}>
|
<Paper elevation={6} style={{height:40}}>
|
||||||
<this.StatsDialog/>
|
<this.StatsDialog/>
|
||||||
|
<this.CommunityDialog/>
|
||||||
<Grid container xs={12}>
|
<Grid container xs={12}>
|
||||||
|
|
||||||
<Grid item xs={1}>
|
<Grid item xs={1}>
|
||||||
@ -177,8 +234,11 @@ export default class BottomBar extends Component {
|
|||||||
</Select>
|
</Select>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={4}>
|
<Grid item xs={4}>
|
||||||
<IconButton color="primary" aria-label="Telegram" onClick={this.handleClickSuppport}>
|
<IconButton
|
||||||
<SupportAgentIcon />
|
color="primary"
|
||||||
|
aria-label="Telegram"
|
||||||
|
onClick={this.handleClickOpenCommunity} >
|
||||||
|
<PeopleIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
@ -19,11 +19,11 @@ export default class InfoDialog extends Component {
|
|||||||
|
|
||||||
<Typography component="h5" variant="h5">How does it work?</Typography>
|
<Typography component="h5" variant="h5">How does it work?</Typography>
|
||||||
<Typography component="body2" variant="body2">
|
<Typography component="body2" variant="body2">
|
||||||
<p>AdequateAlice01 wants to sell bitcoin, so she posts a sell order.
|
<p>AdequateAlice01 wants to sell bitcoin. She posts a sell order.
|
||||||
BafflingBob02 wants to buy bitcoin and he takes Alice's order.
|
BafflingBob02 wants to buy bitcoin and he takes Alice's order.
|
||||||
Both have to post a small bond using lightning to prove they are real
|
Both have to post a small bond using lightning to prove they are real
|
||||||
robots. Then, Alice posts the trade collateral also using a lightning
|
robots. Then, Alice posts the trade collateral also using a lightning
|
||||||
hold invoice. RobotSats locks the invoice until Bob confirms he sent
|
hold invoice. <i>RoboSats</i> locks the invoice until Bob confirms he sent
|
||||||
the fiat to Alice. Once Alice confirms she received the fiat, she
|
the fiat to Alice. Once Alice confirms she received the fiat, she
|
||||||
tells <i>RoboSats</i> to release the satoshis to Bob. Enjoy your satoshis,
|
tells <i>RoboSats</i> to release the satoshis to Bob. Enjoy your satoshis,
|
||||||
Bob!</p>
|
Bob!</p>
|
||||||
@ -43,7 +43,7 @@ export default class InfoDialog extends Component {
|
|||||||
|
|
||||||
<Typography component="h5" variant="h5">Are there trade limits?</Typography>
|
<Typography component="h5" variant="h5">Are there trade limits?</Typography>
|
||||||
<Typography component="body2" variant="body2">
|
<Typography component="body2" variant="body2">
|
||||||
<p>Maximum single trade size is 500,000 Satoshis to minimize lightninh
|
<p>Maximum single trade size is 500,000 Satoshis to minimize lightning
|
||||||
routing failures. This limit will be raised as the Lightning Network
|
routing failures. This limit will be raised as the Lightning Network
|
||||||
matures. There is no limits to the number of trades per day
|
matures. There is no limits to the number of trades per day
|
||||||
or number of simultaneous Robots you can use. </p>
|
or number of simultaneous Robots you can use. </p>
|
||||||
@ -94,8 +94,8 @@ export default class InfoDialog extends Component {
|
|||||||
<p> Your sats will most likely return to you. Any hold invoice that is not
|
<p> Your sats will most likely return to you. Any hold invoice that is not
|
||||||
settled would be automatically returned even if <i>RoboSats</i> goes down
|
settled would be automatically returned even if <i>RoboSats</i> goes down
|
||||||
forever. This is true for both, locked bonds and trading escrows. However,
|
forever. This is true for both, locked bonds and trading escrows. However,
|
||||||
in the window between the buyer confirms FIAT SENT and the moment the moment
|
in the window between the buyer confirms FIAT SENT and the moment the
|
||||||
the seller releases the satoshis, the fund could be lost.
|
seller releases the satoshis, the fund could be lost.
|
||||||
</p>
|
</p>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user