mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-24 21:02:09 +03:00
Fix buy/sell buttons palette
This commit is contained in:
parent
34a8fd99ed
commit
7754f8a0dc
@ -1,9 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
BrowserRouter as Router,
|
||||
Switch,
|
||||
Route,
|
||||
} from 'react-router-dom';
|
||||
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
|
||||
|
||||
import UserGenPage from './UserGenPage';
|
||||
import MakerPage from './MakerPage';
|
||||
|
@ -351,7 +351,13 @@ class MakerPage extends Component {
|
||||
})
|
||||
}
|
||||
disableElevation={this.props.type == 1}
|
||||
color={this.props.type == 1 ? 'primary' : 'inherit'}
|
||||
sx={{
|
||||
backgroundColor: this.props.type == 1 ? 'primary.main' : 'background.paper',
|
||||
color: this.props.type == 1 ? 'background.paper' : 'text.secondary',
|
||||
':hover': {
|
||||
color: 'background.paper',
|
||||
},
|
||||
}}
|
||||
>
|
||||
{t('Buy')}
|
||||
</Button>
|
||||
@ -364,7 +370,14 @@ class MakerPage extends Component {
|
||||
})
|
||||
}
|
||||
disableElevation={this.props.type == 0}
|
||||
color={this.props.type == 0 ? 'secondary' : 'inherit'}
|
||||
color='secondary'
|
||||
sx={{
|
||||
backgroundColor: this.props.type == 0 ? 'secondary.main' : 'background.paper',
|
||||
color: this.props.type == 0 ? 'background.secondary' : 'text.secondary',
|
||||
':hover': {
|
||||
color: 'background.paper',
|
||||
},
|
||||
}}
|
||||
>
|
||||
{t('Sell')}
|
||||
</Button>
|
||||
|
@ -98,9 +98,6 @@ class UserGenPage extends Component {
|
||||
earnedRewards: data.earned_rewards,
|
||||
lastOrderId: data.last_order_id ? data.last_order_id : null,
|
||||
stealthInvoices: data.wants_stealth,
|
||||
tgEnabled: data.tg_enabled,
|
||||
tgBotName: data.tg_bot_name,
|
||||
tgToken: data.tg_token,
|
||||
})
|
||||
: this.props.setAppState({
|
||||
nickname: data.nickname,
|
||||
@ -111,6 +108,9 @@ class UserGenPage extends Component {
|
||||
referralCode: data.referral_code,
|
||||
earnedRewards: data.earned_rewards,
|
||||
stealthInvoices: data.wants_stealth,
|
||||
tgEnabled: data.tg_enabled,
|
||||
tgBotName: data.tg_bot_name,
|
||||
tgToken: data.tg_token,
|
||||
}) &
|
||||
writeCookie('robot_token', token) &
|
||||
writeCookie('pub_key', data.public_key.split('\n').join('\\')) &
|
||||
|
Loading…
Reference in New Issue
Block a user