Add delay on annoying tooltips. Add more characters to default token.

This commit is contained in:
Reckless_Satoshi 2022-02-08 08:20:41 -08:00
parent 94d1f4a51f
commit 243690899e
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
4 changed files with 11 additions and 11 deletions

View File

@ -63,10 +63,10 @@ robosats_commit_cache = {}
@ring.dict(robosats_commit_cache, expire=3600)
def get_commit_robosats():
stream = os.popen('git log -n 1 --pretty=format:"%H"')
lnd_version = stream.read()
commit = os.popen('git log -n 1 --pretty=format:"%H"')
commit_hash = commit.read()
return lnd_version
return commit_hash
premium_percentile = {}
@ring.dict(premium_percentile, expire=300)

View File

@ -184,7 +184,7 @@ export default class MakerPage extends Component {
</Grid>
<Grid containter xs={12} alignItems="stretch" style={{ display: "flex" }}>
<div style={{maxWidth:140}}>
<Tooltip placement="top" enterTouchDelay="0" title="Amount of fiat to exchange for bitcoin">
<Tooltip placement="top" enterTouchDelay="500" enterDelay="700" enterNextDelay="2000" title="Amount of fiat to exchange for bitcoin">
<TextField
error={this.state.amount <= 0}
helperText={this.state.amount <= 0 ? 'Invalid' : null}
@ -217,7 +217,7 @@ export default class MakerPage extends Component {
</Grid>
<br/>
<Grid item xs={12} align="center">
<Tooltip placement="top" enterTouchDelay="0" title="Enter your prefered payment methods">
<Tooltip placement="top" enterTouchDelay="500" enterDelay="700" enterNextDelay="2000" title="Enter your prefered payment methods">
<TextField
sx={{width:240}}
label="Payment Method(s)"
@ -242,7 +242,7 @@ export default class MakerPage extends Component {
</div>
</FormHelperText>
<RadioGroup row defaultValue="relative">
<Tooltip placement="top" enterTouchDelay="0" title="Let the price move with the market">
<Tooltip placement="top" enterTouchDelay="0" enterDelay="1000" enterNextDelay="2000" title="Let the price move with the market">
<FormControlLabel
value="relative"
control={<Radio color="primary"/>}
@ -251,7 +251,7 @@ export default class MakerPage extends Component {
onClick={this.handleClickRelative}
/>
</Tooltip>
<Tooltip placement="top" enterTouchDelay="0" title="Set a fix amount of satoshis">
<Tooltip placement="top" enterTouchDelay="0" enterDelay="1000" enterNextDelay="2000" title="Set a fix amount of satoshis">
<FormControlLabel
value="explicit"
control={<Radio color="secondary"/>}

View File

@ -28,7 +28,7 @@ export default class UserGenPage extends Component {
constructor(props) {
super(props);
this.state = {
token: this.genBase62Token(34),
token: this.genBase62Token(36),
openInfo: false,
loadingRobot: true,
tokenHasChanged: false,
@ -88,7 +88,7 @@ export default class UserGenPage extends Component {
handleClickNewRandomToken=()=>{
this.setState({
token: this.genBase62Token(34),
token: this.genBase62Token(36),
tokenHasChanged: true,
copied: true,
});
@ -209,7 +209,7 @@ export default class UserGenPage extends Component {
<span> Generate Robot</span>
</Button>
:
<Tooltip enterTouchDelay="0" title="You must enter a new token first">
<Tooltip enterTouchDelay="0" enterDelay="500" enterNextDelay="2000" title="You must enter a new token first">
<div>
<Button disabled={true} type="submit" size='small' >
<SmartToyIcon sx={{width:18, height:18}} />

File diff suppressed because one or more lines are too long