Skip to content

Commit

Permalink
PM-8112 - Registration start comp - update page icon and page title o…
Browse files Browse the repository at this point in the history
…n state change to match figma
  • Loading branch information
JaredSnider-Bitwarden committed Oct 1, 2024
1 parent f032124 commit f01a0f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,6 @@

<ng-container *ngIf="state === RegistrationStartState.CHECK_EMAIL">
<div class="tw-flex tw-flex-col tw-items-center tw-justify-center">
<bit-icon [icon]="Icons.RegistrationCheckEmailIcon" class="tw-mb-6"></bit-icon>

<h2
bitTypography="h2"
id="check_your_email_heading"
class="tw-font-bold tw-mb-3 tw-text-main"
tabindex="0"
aria-describedby="follow_the_link_body"
appAutofocus
>
{{ "checkYourEmail" | i18n }}
</h2>

<p bitTypography="body1" class="tw-text-center tw-mb-3 tw-text-main" id="follow_the_link_body">
{{ "followTheLinkInTheEmailSentTo" | i18n }}
<span class="tw-font-bold">{{ email.value }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import {
LinkModule,
} from "@bitwarden/components";

import { AnonLayoutWrapperDataService } from "../../anon-layout/anon-layout-wrapper-data.service";
import { RegistrationUserAddIcon } from "../../icons";

Check warning on line 22 in libs/auth/src/angular/registration/registration-start/registration-start.component.ts

View check run for this annotation

Codecov / codecov/patch

libs/auth/src/angular/registration/registration-start/registration-start.component.ts#L21-L22

Added lines #L21 - L22 were not covered by tests
import { RegistrationCheckEmailIcon } from "../../icons/registration-check-email.icon";
import { RegistrationEnvSelectorComponent } from "../registration-env-selector/registration-env-selector.component";

Expand Down Expand Up @@ -88,6 +90,7 @@ export class RegistrationStartComponent implements OnInit, OnDestroy {
private platformUtilsService: PlatformUtilsService,
private accountApiService: AccountApiService,
private router: Router,
private anonLayoutWrapperDataService: AnonLayoutWrapperDataService,

Check warning on line 93 in libs/auth/src/angular/registration/registration-start/registration-start.component.ts

View check run for this annotation

Codecov / codecov/patch

libs/auth/src/angular/registration/registration-start/registration-start.component.ts#L93

Added line #L93 was not covered by tests
) {
this.isSelfHost = platformUtilsService.isSelfHost();
}
Expand Down Expand Up @@ -148,6 +151,10 @@ export class RegistrationStartComponent implements OnInit, OnDestroy {

// Result is null, so email verification is required
this.state = RegistrationStartState.CHECK_EMAIL;
this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({

Check warning on line 154 in libs/auth/src/angular/registration/registration-start/registration-start.component.ts

View check run for this annotation

Codecov / codecov/patch

libs/auth/src/angular/registration/registration-start/registration-start.component.ts#L154

Added line #L154 was not covered by tests
pageTitle: "checkYourEmail",
pageIcon: RegistrationCheckEmailIcon,
});
this.registrationStartStateChange.emit(this.state);
};

Expand All @@ -171,6 +178,10 @@ export class RegistrationStartComponent implements OnInit, OnDestroy {

goBack() {
this.state = RegistrationStartState.USER_DATA_ENTRY;
this.anonLayoutWrapperDataService.setAnonLayoutWrapperData({

Check warning on line 181 in libs/auth/src/angular/registration/registration-start/registration-start.component.ts

View check run for this annotation

Codecov / codecov/patch

libs/auth/src/angular/registration/registration-start/registration-start.component.ts#L181

Added line #L181 was not covered by tests
pageIcon: RegistrationUserAddIcon,
pageTitle: "createAccount",
});
this.registrationStartStateChange.emit(this.state);
}

Expand Down

0 comments on commit f01a0f8

Please sign in to comment.