File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ drawRemainingContestationPeriod :: UTCTime -> UTCTime -> Widget Name
133
133
drawRemainingContestationPeriod deadline now =
134
134
let remaining = diffUTCTime deadline now
135
135
in if remaining > 0
136
- then padLeftRight 1 $ txt " Remaining time to contest: " <+> str (renderTime remaining)
136
+ then padLeftRight 1 $ vBox [ txt " Remaining time to contest: " , str (renderTime remaining)]
137
137
else txt " Contestation period passed, ready to fan out soon."
138
138
139
139
drawTotalCommitted :: UTxO -> Widget n
Original file line number Diff line number Diff line change @@ -45,12 +45,18 @@ handleEvent ::
45
45
EventM Name RootState ()
46
46
handleEvent cardanoClient client e = do
47
47
handleGlobalEvents e
48
+ handleAppEventVia handleTick () e
48
49
zoom connectedStateL $ do
49
50
handleAppEventVia handleHydraEventsConnectedState () e
50
51
zoom connectionL $ handleBrickEventsConnection cardanoClient client e
51
52
zoom (logStateL . logMessagesL) $
52
53
handleAppEventVia handleHydraEventsInfo () e
53
54
55
+ handleTick :: HydraEvent Tx -> EventM Name RootState ()
56
+ handleTick = \ case
57
+ Tick now -> nowL .= now
58
+ _ -> pure ()
59
+
54
60
handleAppEventVia :: (e -> EventM n s a ) -> a -> BrickEvent w e -> EventM n s a
55
61
handleAppEventVia f x = \ case
56
62
AppEvent e -> f e
You can’t perform that action at this time.
0 commit comments