mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 23:27:31 +00:00
fix(notices): pass the Patreon handler in the modal test, logical sides in the card drawings, no non-null assertions
This commit is contained in:
@@ -567,7 +567,7 @@ function useSystemNoticeModal(notices: SystemNoticeDTO[]) {
|
||||
// Both buttons only render when the notice carries the matching cta.
|
||||
function handleCTA() { runCta(notice!.cta!); }
|
||||
function handleSecondaryCTA() { runCta(notice!.secondaryCta!); }
|
||||
function handleTertiaryCTA() { runCta(notice!.tertiaryCta!); }
|
||||
function handleTertiaryCTA() { if (notice?.tertiaryCta) runCta(notice.tertiaryCta); }
|
||||
|
||||
function animatedDismissAll() {
|
||||
const sheet = sheetRef.current;
|
||||
|
||||
Reference in New Issue
Block a user