mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 19:36:24 +00:00
Fix tradesummary avatars baseurl
This commit is contained in:
parent
7f731dfb00
commit
9d80ca6fdb
@ -48,6 +48,7 @@ interface Props {
|
||||
takerSummary: Record<string, Item>;
|
||||
platformSummary: Record<string, Item>;
|
||||
orderId: number;
|
||||
baseUrl: string;
|
||||
}
|
||||
|
||||
const TradeSummary = ({
|
||||
@ -59,6 +60,7 @@ const TradeSummary = ({
|
||||
takerSummary,
|
||||
platformSummary,
|
||||
orderId,
|
||||
baseUrl,
|
||||
}: Props): JSX.Element => {
|
||||
const { t, i18n } = useTranslation();
|
||||
const [buttonValue, setButtonValue] = useState<number>(isMaker ? 0 : 2);
|
||||
@ -94,7 +96,11 @@ const TradeSummary = ({
|
||||
>
|
||||
<ToggleButtonGroup size='small' value={buttonValue} exclusive>
|
||||
<ToggleButton value={0} disableRipple={true} onClick={() => setButtonValue(0)}>
|
||||
<RobotAvatar style={{ height: 28, width: 28 }} nickname={makerNick} />
|
||||
<RobotAvatar
|
||||
baseUrl={baseUrl}
|
||||
style={{ height: 28, width: 28 }}
|
||||
nickname={makerNick}
|
||||
/>
|
||||
|
||||
{t('Maker')}
|
||||
</ToggleButton>
|
||||
@ -105,6 +111,7 @@ const TradeSummary = ({
|
||||
{t('Taker')}
|
||||
|
||||
<RobotAvatar
|
||||
baseUrl={baseUrl}
|
||||
avatarClass='smallAvatar'
|
||||
style={{ height: 28, width: 28 }}
|
||||
nickname={takerNick}
|
||||
|
@ -1681,6 +1681,7 @@ class TradeBox extends Component {
|
||||
</Grid>
|
||||
|
||||
<TradeSummary
|
||||
baseUrl={this.props.baseUrl}
|
||||
isMaker={this.props.data.is_maker}
|
||||
makerNick={this.props.data.maker_nick}
|
||||
takerNick={this.props.data.taker_nick}
|
||||
|
Loading…
Reference in New Issue
Block a user