Skip to content

Commit

Permalink
fix: remove update user page
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolagobat committed Nov 29, 2023
1 parent b0b8e85 commit a2bf6b7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions app/src/app/pages/profile/profile-get/profile.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { UpdateUserResponse } from '../../../schemas/user/update/update-user-res
templateUrl: './profile.page.html',
styleUrls: ['./profile.page.scss'],
})
export class ProfilePage implements OnInit {
export class ProfilePage {
phoneMask = spainPhoneMask;
maskPredicate = phoneMaskPredicate;

Expand Down Expand Up @@ -55,8 +55,6 @@ export class ProfilePage implements OnInit {
this.avatar = this.getRandomAvatar();
}

ngOnInit() {}

private async getUserId(): Promise<string | null> {
return this.authService.getUserId().then();
}
Expand Down
5 changes: 0 additions & 5 deletions app/src/app/pages/profile/profile-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ProfilePage } from './profile-get/profile.page';
import { ProfileUpdatePage } from './profile-update/profile-update/profile-update.page';

const routes: Routes = [
{
path: '',
component: ProfilePage,
},
{
path: 'update/:id',
component: ProfileUpdatePage,
},
];

@NgModule({
Expand Down
3 changes: 1 addition & 2 deletions app/src/app/pages/profile/profile.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ProfilePageRoutingModule } from './profile-routing.module';

import { ProfilePage } from './profile-get/profile.page';
import { TranslateModule } from '@ngx-translate/core';
import { ProfileUpdatePage } from './profile-update/profile-update/profile-update.page';
import { LanguageSettingsComponent } from '../../components/language-settings/language-settings.component';
import { MaskitoModule } from '@maskito/angular';

Expand All @@ -21,6 +20,6 @@ import { MaskitoModule } from '@maskito/angular';
TranslateModule,
MaskitoModule,
],
declarations: [ProfilePage, ProfileUpdatePage, LanguageSettingsComponent],
declarations: [ProfilePage, LanguageSettingsComponent],
})
export class ProfilePageModule {}

0 comments on commit a2bf6b7

Please sign in to comment.