-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
138 additions
and
62 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
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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
import { useNavigate } from 'react-router-dom' | ||
import ProjectForm from '../project/ProjectForm' | ||
import { useTranslation } from 'react-i18next' | ||
|
||
export default function OnboardingProject() { | ||
const { t } = useTranslation() | ||
const navigate = useNavigate() | ||
return ( | ||
<div className="auth-step"> | ||
<h1>Project Setup</h1> | ||
<p> | ||
{ | ||
`At Parcelvoy, projects represent a single workspace for sending messages. | ||
You can use them for creating staging environments, isolating different clients, etc. | ||
Let's create your first one to get you started!` | ||
} | ||
</p> | ||
<ProjectForm | ||
onSave={({ id }) => navigate('/projects/' + id)} | ||
/> | ||
<h1>{t('onboarding_project_setup_title')}</h1> | ||
<p>{t('onboarding_project_setup_description')}</p> | ||
<ProjectForm onSave={({ id }) => navigate('/projects/' + id)} /> | ||
</div> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { LinkButton } from '../../ui/Button' | ||
import { useTranslation } from 'react-i18next' | ||
|
||
export default function Onboarding() { | ||
const { t } = useTranslation() | ||
return ( | ||
<div className="auth-step"> | ||
<h1>Welcome!</h1> | ||
<p>Looks like everything is working with the installation! Now let's get you setup and ready to run some campaigns!</p> | ||
<LinkButton to="/onboarding/project">Get Started</LinkButton> | ||
<h1>{t('welcome')}</h1> | ||
<p>{t('onboarding_installation_success')}</p> | ||
<LinkButton to="/onboarding/project">{t('get_started')}</LinkButton> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.