* resolved typescript problems for success.tsx, useTheme.tsx and event.ts * remove NextRouter inferred type Co-authored-by: Alex Johansson <[email protected]> * remove router query inferred type Co-authored-by: Alex Johansson <[email protected]> * URIcomponent change ternary Co-authored-by: Alex Johansson <[email protected]> * infer types for event type * completed requested changes * Update pages/success.tsx | change context type to proper Co-authored-by: Alex Johansson <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Alex Johansson <[email protected]> Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: Bailey Pumfleet <[email protected]>