mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-27 23:59:01 +00:00
Remove duplicated tooltip
The Tooltip component does not allow another Tooltip component as child.
This commit is contained in:
parent
6c53fc21c5
commit
a1aa270cfd
@ -354,7 +354,7 @@ class BottomBar extends Component {
|
|||||||
|
|
||||||
<Divider/>
|
<Divider/>
|
||||||
|
|
||||||
<Grid spacing={1} align="center">
|
<Grid spacing={1} align="center" container>
|
||||||
<FormControlLabel labelPlacement="start"control={
|
<FormControlLabel labelPlacement="start"control={
|
||||||
<Switch
|
<Switch
|
||||||
checked={this.state.showRewards}
|
checked={this.state.showRewards}
|
||||||
@ -457,8 +457,6 @@ bottomBarDesktop =()=>{
|
|||||||
<div style={{display: this.props.avatarLoaded ? '':'none'}}>
|
<div style={{display: this.props.avatarLoaded ? '':'none'}}>
|
||||||
<ListItemButton onClick={this.handleClickOpenProfile} >
|
<ListItemButton onClick={this.handleClickOpenProfile} >
|
||||||
<Tooltip open={this.state.earned_rewards > 0 ? true: false} title={t("You can claim satoshis!")}>
|
<Tooltip open={this.state.earned_rewards > 0 ? true: false} title={t("You can claim satoshis!")}>
|
||||||
<Tooltip open={(this.state.active_order_id > 0 & !this.state.profileShown & this.props.avatarLoaded) ? true: false}
|
|
||||||
title={t("You have an active order")}>
|
|
||||||
<ListItemAvatar sx={{ width: 30, height: 30 }} >
|
<ListItemAvatar sx={{ width: 30, height: 30 }} >
|
||||||
<Badge badgeContent={(this.state.active_order_id > 0 & !this.state.profileShown) ? "": null} color="primary">
|
<Badge badgeContent={(this.state.active_order_id > 0 & !this.state.profileShown) ? "": null} color="primary">
|
||||||
<Avatar className='flippedSmallAvatar' sx={{margin: 0, top: -13}}
|
<Avatar className='flippedSmallAvatar' sx={{margin: 0, top: -13}}
|
||||||
@ -471,7 +469,6 @@ bottomBarDesktop =()=>{
|
|||||||
</Badge>
|
</Badge>
|
||||||
</ListItemAvatar>
|
</ListItemAvatar>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Tooltip>
|
|
||||||
<ListItemText primary={this.props.nickname}/>
|
<ListItemText primary={this.props.nickname}/>
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</div>
|
</div>
|
||||||
@ -720,8 +717,6 @@ bottomBarPhone =()=>{
|
|||||||
<Grid item xs={1.6}>
|
<Grid item xs={1.6}>
|
||||||
<div style={{display: this.props.avatarLoaded ? '':'none'}}>
|
<div style={{display: this.props.avatarLoaded ? '':'none'}}>
|
||||||
<Tooltip open={this.state.earned_rewards > 0 ? true: false} title={t("You can claim satoshis!")}>
|
<Tooltip open={this.state.earned_rewards > 0 ? true: false} title={t("You can claim satoshis!")}>
|
||||||
<Tooltip open={(this.state.active_order_id > 0 & !this.state.profileShown & this.props.avatarLoaded) ? true: false}
|
|
||||||
title={t("You have an active order")}>
|
|
||||||
<IconButton onClick={this.handleClickOpenProfile} sx={{margin: 0, bottom: 17, right: 8}} >
|
<IconButton onClick={this.handleClickOpenProfile} sx={{margin: 0, bottom: 17, right: 8}} >
|
||||||
<Badge badgeContent={(this.state.active_order_id >0 & !this.state.profileShown) ? "": null} color="primary">
|
<Badge badgeContent={(this.state.active_order_id >0 & !this.state.profileShown) ? "": null} color="primary">
|
||||||
<Avatar className='phoneFlippedSmallAvatar'
|
<Avatar className='phoneFlippedSmallAvatar'
|
||||||
@ -735,7 +730,6 @@ bottomBarPhone =()=>{
|
|||||||
</Badge>
|
</Badge>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user