Tickets look nice now

This commit is contained in:
Marco van Dijk 2022-03-13 17:50:55 +01:00
parent de701edbaf
commit a4c94f55fd
2 changed files with 5 additions and 4 deletions

View File

@ -180,7 +180,7 @@ export const getEvents = () => async dispatch => {
eventDescription =
<Ticket icon={"⌛"} subtext={subtext} descriptions={descriptions} />
} else {
const subtext = "moved stake to a new orchestrator";
const subtext = "moved stake";
const descriptions = [
tmpAmount.toFixed(2) + " LPT"
]
@ -315,8 +315,9 @@ export const getEvents = () => async dispatch => {
if (amount1 < thresholdStaking && amount2 < thresholdFees) {
continue;
}
const subtext = "delegator claimed " + (eventObj.data.endRound - eventObj.data.startRound + 1) + " rounds of rewards";
const subtext = "delegator claimed rewards";
const descriptions = [
"of " + (eventObj.data.endRound - eventObj.data.startRound + 1) + " rounds",
"+" + amount1.toFixed(2) + " LPT rewards",
"+" + amount2.toFixed(4) + " Eth fees"
]

View File

@ -3,7 +3,7 @@ import React from "react";
const Ticket = (obj) => {
return (
<div className="flexContainer" style={{ justifyContent: 'space-between', alignItems: "stretch", width: "100%" }}>
<div className="strokeSmoll">
<div className="strokeSmoll" style={{flex: 1}}>
<div className="row">
<h3 style={{ margin: 0, padding: 0 }}>{obj.icon}</h3>
</div>
@ -14,7 +14,7 @@ const Ticket = (obj) => {
</div>
</div>
<div className="verticalSeparator"></div>
<div className="flexContainer">
<div className="stroke" style={{ margin: 0, padding : 0, flex: 2 }}>
{obj.descriptions.map(function (thisTextItem, i) {
return (
<p style={{ fontSize: 'small' }}>