MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / Page

Function Page

apps/webapp/app/routes/unsubscribe.$userId.$token.tsx:65–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63};
64
65export default function Page() {
66 const result = useTypedLoaderData<typeof loader>();
67
68 return (
69 <AppContainer>
70 <MainCenteredContainer className="max-w-[22rem]">
71 {result.success ? (
72 <div>
73 <FormTitle LeadingIcon="envelope" title="Unsubscribed" />
74 <Paragraph spacing>
75 You have unsubscribed from onboarding emails, {result.email}.
76 </Paragraph>
77 <LinkButton variant="primary/medium" to={rootPath()}>
78 Dashboard
79 </LinkButton>
80 </div>
81 ) : (
82 <div>
83 <FormTitle LeadingIcon="envelope" title="Unsubscribe failed" />
84 <Paragraph spacing>{result.message}</Paragraph>
85 <Paragraph spacing>
86 If you believe this is a bug, please{" "}
87 <TextLink href="https://trigger.dev/contact">contact support</TextLink>.
88 </Paragraph>
89 <LinkButton variant="primary/medium" to={rootPath()}>
90 Dashboard
91 </LinkButton>
92 </div>
93 )}
94 </MainCenteredContainer>
95 </AppContainer>
96 );
97}

Callers

nothing calls this directly

Calls 1

rootPathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…