style(account-sidebar): update active nav link color to use CSS variable for consistency
This commit is contained in:
parent
6a5683f6b7
commit
23f48ccec0
|
|
@ -29,6 +29,6 @@
|
||||||
color: #5a5a5a;
|
color: #5a5a5a;
|
||||||
}
|
}
|
||||||
.nav-link.active {
|
.nav-link.active {
|
||||||
color: #5b75ff; /* Blue color matching the image */
|
color: var(--color-primary); /* Blue color matching the image */
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { Component, OnInit, inject } from '@angular/core';
|
import { Component, inject, effect } from '@angular/core';
|
||||||
import { ReactiveFormsModule, FormBuilder, FormGroup } from '@angular/forms';
|
import { ReactiveFormsModule, FormBuilder, FormGroup } from '@angular/forms';
|
||||||
import { InputComponent } from '../../../../../../shared/components/input/input.component';
|
import { InputComponent } from '../../../../../../shared/components/input/input.component';
|
||||||
import { ButtonComponent } from '../../../../../../shared/components/button/button.component';
|
import { ButtonComponent } from '../../../../../../shared/components/button/button.component';
|
||||||
|
|
@ -11,7 +11,7 @@ import { AuthService } from '../../../../../../core/services/auth/auth.service';
|
||||||
templateUrl: './profile-form.html',
|
templateUrl: './profile-form.html',
|
||||||
styleUrl: './profile-form.scss',
|
styleUrl: './profile-form.scss',
|
||||||
})
|
})
|
||||||
export class ProfileForm implements OnInit {
|
export class ProfileForm {
|
||||||
profileForm: FormGroup;
|
profileForm: FormGroup;
|
||||||
private authService = inject(AuthService);
|
private authService = inject(AuthService);
|
||||||
|
|
||||||
|
|
@ -23,19 +23,18 @@ export class ProfileForm implements OnInit {
|
||||||
phone: [''],
|
phone: [''],
|
||||||
password: ['']
|
password: ['']
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
effect(() => {
|
||||||
this.authService.loadCurrentUser().subscribe({
|
const user = this.authService.user();
|
||||||
next: (user) => {
|
if (user) {
|
||||||
this.profileForm.patchValue({
|
this.profileForm.patchValue({
|
||||||
fullName: user.nombre_apellido,
|
fullName: user.nombre_apellido,
|
||||||
email: user.email,
|
email: user.email,
|
||||||
dni: user.dni || '',
|
dni: user.dni || '',
|
||||||
phone: user.telefono || ''
|
phone: user.telefono || ''
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
error: (err) => console.error('Error fetching user profile', err)
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue