Skip to content

Commit

Permalink
CXSPA-8773: remove service
Browse files Browse the repository at this point in the history
  • Loading branch information
i53577 committed Jan 8, 2025
1 parent ce3577d commit e0b7f97
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
*/

export * from './user-registration-otp-form.component';
export * from './user-registration-otp-form.service';
export * from './user-registration-otp-form.module';
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import {
} from '@spartacus/core';
import { Title } from '@spartacus/user/profile/root';
import { BehaviorSubject, Observable } from 'rxjs';
import { UserRegistrationOTPFormService } from './user-registration-otp-form.service';
import {
VerificationToken,
VerificationTokenCreation,
VerificationTokenFacade,
} from '@spartacus/user/account/root';
import { ONE_TIME_PASSWORD_REGISTRATION_PURPOSE } from '../user-registration-constants';
import { UserRegistrationFormService } from '../form';

@Component({
selector: 'cx-user-registration-form',
Expand All @@ -35,6 +35,7 @@ export class UserRegistrationOTPFormComponent {
protected globalMessageService = inject(GlobalMessageService, {
optional: true,
});
protected userRegistrationFormService = inject(UserRegistrationFormService);
protected busy$ = new BehaviorSubject(false);
titles$: Observable<Title[]> = this.userRegistrationFormService.getTitles();

Expand All @@ -48,10 +49,6 @@ export class UserRegistrationOTPFormComponent {

isLoading$ = new BehaviorSubject(false);

constructor(
protected userRegistrationFormService: UserRegistrationOTPFormService
) {}

onSubmit(): void {
if (!this.registerForm.valid) {
this.registerForm.markAllAsTouched();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
NgSelectA11yModule,
SpinnerModule,
} from '@spartacus/storefront';
import { UserRegistrationOTPFormService } from './user-registration-otp-form.service';
import { UserRegistrationOTPFormComponent } from './user-registration-otp-form.component';

@NgModule({
Expand All @@ -48,6 +47,5 @@ import { UserRegistrationOTPFormComponent } from './user-registration-otp-form.c
],
declarations: [UserRegistrationOTPFormComponent],
exports: [UserRegistrationOTPFormComponent],
providers: [UserRegistrationOTPFormService],
})
export class UserRegistrationOTPFormModule {}

This file was deleted.

0 comments on commit e0b7f97

Please sign in to comment.