-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apps): show specific app registration complete page for some users
- Loading branch information
Showing
11 changed files
with
113 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { Meta } from '@storybook/react'; | ||
|
||
import { ReturnToApp } from './ReturnToApp'; | ||
|
||
export default { | ||
title: 'Pages/ReturnToApp', | ||
component: ReturnToApp, | ||
parameters: { layout: 'fullscreen' }, | ||
} as Meta; | ||
|
||
export const Default = () => ( | ||
<ReturnToApp email="[email protected]" appName="Guardian" /> | ||
); | ||
|
||
export const NoEmail = () => <ReturnToApp appName="Guardian" />; | ||
|
||
export const NoApp = () => <ReturnToApp email="[email protected]" />; | ||
|
||
export const NoEmailOrApp = () => <ReturnToApp />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { MainLayout } from '@/client/layouts/Main'; | ||
import { MainBodyText } from '@/client/components/MainBodyText'; | ||
|
||
type ReturnToAppProps = { | ||
email?: string; | ||
appName?: string; | ||
}; | ||
|
||
export const ReturnToApp = ({ email, appName: app }: ReturnToAppProps) => ( | ||
<MainLayout pageHeader="Account Created"> | ||
<MainBodyText> | ||
You have finished creating your Guardian account | ||
{email ? ( | ||
<> | ||
: <b>{email}</b> | ||
</> | ||
) : ( | ||
'' | ||
)} | ||
. | ||
</MainBodyText> | ||
<MainBodyText> | ||
Open the <b>{app ? app : 'Guardian'}</b> app and sign in with your new | ||
account. | ||
</MainBodyText> | ||
</MainLayout> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import useClientState from '@/client/lib/hooks/useClientState'; | ||
import { ReturnToApp } from '@/client/pages/ReturnToApp'; | ||
|
||
export const ReturnToAppPage = () => { | ||
const clientState = useClientState(); | ||
const { pageData = {} } = clientState; | ||
const { email, appName } = pageData; | ||
|
||
return <ReturnToApp email={email} appName={appName} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters