fix: Show error message when signing in to suspended account

closes #1056
This commit is contained in:
Tom Moor
2019-10-12 19:16:17 -07:00
parent fc201663c6
commit ec4d4fb20f
4 changed files with 13 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ function Home(props: Props) {
</Helmet>
<Grid>
<Hero id="signin">
<AuthErrors notice={props.notice} />
<h1>Your teams knowledge base</h1>
<HeroText>
Team wiki, documentation, meeting notes, playbooks, onboarding, work
@@ -37,7 +38,6 @@ function Home(props: Props) {
<p>
<SigninButtons {...props} />
</p>
<AuthErrors notice={props.notice} />
</Hero>
<Mask>
<Features>

View File

@@ -39,6 +39,7 @@ function SubdomainSignin({
<PageTitle title={`Sign in to ${team.name}`} />
<Grid>
<Hero>
<AuthErrors notice={notice} />
<h1>{lastSignedIn ? 'Welcome back,' : 'Hey there,'}</h1>
<HeroText>
Sign in with your team account to continue to {team.name}.
@@ -51,7 +52,6 @@ function SubdomainSignin({
lastSignedIn={signinHint}
/>
</p>
<AuthErrors notice={notice} />
</Hero>
</Grid>
<Alternative>

View File

@@ -27,6 +27,12 @@ export default function AuthErrors({ notice }: Props) {
Please try again.
</Notice>
)}
{notice === 'suspended' && (
<Notice>
Your Outline account has been suspended. To re-activate your account,
please contact a team admin.
</Notice>
)}
</React.Fragment>
);
}