mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Tickets look nice now
This commit is contained in:
parent
de701edbaf
commit
a4c94f55fd
@ -180,7 +180,7 @@ export const getEvents = () => async dispatch => {
|
|||||||
eventDescription =
|
eventDescription =
|
||||||
<Ticket icon={"⌛"} subtext={subtext} descriptions={descriptions} />
|
<Ticket icon={"⌛"} subtext={subtext} descriptions={descriptions} />
|
||||||
} else {
|
} else {
|
||||||
const subtext = "moved stake to a new orchestrator";
|
const subtext = "moved stake";
|
||||||
const descriptions = [
|
const descriptions = [
|
||||||
tmpAmount.toFixed(2) + " LPT"
|
tmpAmount.toFixed(2) + " LPT"
|
||||||
]
|
]
|
||||||
@ -315,8 +315,9 @@ export const getEvents = () => async dispatch => {
|
|||||||
if (amount1 < thresholdStaking && amount2 < thresholdFees) {
|
if (amount1 < thresholdStaking && amount2 < thresholdFees) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const subtext = "delegator claimed " + (eventObj.data.endRound - eventObj.data.startRound + 1) + " rounds of rewards";
|
const subtext = "delegator claimed rewards";
|
||||||
const descriptions = [
|
const descriptions = [
|
||||||
|
"of " + (eventObj.data.endRound - eventObj.data.startRound + 1) + " rounds",
|
||||||
"+" + amount1.toFixed(2) + " LPT rewards",
|
"+" + amount1.toFixed(2) + " LPT rewards",
|
||||||
"+" + amount2.toFixed(4) + " Eth fees"
|
"+" + amount2.toFixed(4) + " Eth fees"
|
||||||
]
|
]
|
||||||
|
@ -3,7 +3,7 @@ import React from "react";
|
|||||||
const Ticket = (obj) => {
|
const Ticket = (obj) => {
|
||||||
return (
|
return (
|
||||||
<div className="flexContainer" style={{ justifyContent: 'space-between', alignItems: "stretch", width: "100%" }}>
|
<div className="flexContainer" style={{ justifyContent: 'space-between', alignItems: "stretch", width: "100%" }}>
|
||||||
<div className="strokeSmoll">
|
<div className="strokeSmoll" style={{flex: 1}}>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<h3 style={{ margin: 0, padding: 0 }}>{obj.icon}</h3>
|
<h3 style={{ margin: 0, padding: 0 }}>{obj.icon}</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -14,7 +14,7 @@ const Ticket = (obj) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="verticalSeparator"></div>
|
<div className="verticalSeparator"></div>
|
||||||
<div className="flexContainer">
|
<div className="stroke" style={{ margin: 0, padding : 0, flex: 2 }}>
|
||||||
{obj.descriptions.map(function (thisTextItem, i) {
|
{obj.descriptions.map(function (thisTextItem, i) {
|
||||||
return (
|
return (
|
||||||
<p style={{ fontSize: 'small' }}>
|
<p style={{ fontSize: 'small' }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user