Skip to content

Commit

Permalink
fix(account): corrige erro de duplicação ao criar uma nova conta
Browse files Browse the repository at this point in the history
  • Loading branch information
guiseek committed Dec 2, 2024
1 parent 59931c0 commit 15bb684
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
38 changes: 16 additions & 22 deletions apps/devmx/src/app/app.sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const appSections: SectionHeaderOptions[] = [
expanded: true,
links: [
{
label: 'Conta',
label: 'Inicio',
route: ['/conta'],
icon: 'menu/home-4',
},
Expand All @@ -21,7 +21,7 @@ export const appSections: SectionHeaderOptions[] = [
icon: 'camera-shutter',
},
{
label: 'Apresentações',
label: 'Conhecimento',
route: ['/apresentacoes'],
icon: 'presentation',
},
Expand Down Expand Up @@ -76,12 +76,23 @@ export const appSections: SectionHeaderOptions[] = [
icon: 'music/speaker',
roles: ['recruiter'],
},
// {
// label: 'Aprenda',
// route: ['/aprenda', 'administracao'],
// icon: 'book-opened',
// roles: ['member'],
// },
{
label: 'Aprenda',
route: ['/aprenda', 'administracao'],
icon: 'book-opened',
label: 'Sobre você',
route: ['/conta', 'configuracoes'],
icon: 'doc/id-card',
roles: ['member'],
},
{
label: 'Sair',
route: ['/conta', 'sair'],
icon: 'exit',
},
],
},
{
Expand Down Expand Up @@ -126,21 +137,4 @@ export const appSections: SectionHeaderOptions[] = [
},
],
},
{
label: 'Conta',
expanded: true,
links: [
{
label: 'Sobre você',
route: ['/conta', 'configuracoes'],
icon: 'doc/id-card',
roles: ['member'],
},
{
label: 'Sair',
route: ['/conta', 'sair'],
icon: 'exit',
},
],
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ export class AuthenticationFacade extends State<AuthenticationState> {
createUser(data: CreateUser) {
this.setState({ loading: true });

const request$ = this.createUserUseCase.execute(data);
request$.pipe(take(1)).subscribe();

return request$;
return this.createUserUseCase.execute(data).pipe(take(1));
}

signOut() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
<a
[routerLink]="['..','cadastrar']"
[queryParams]="route.snapshot.queryParams"
mat-button
>Quero criar minha conta</a
mat-raised-button
>
Quero criar minha conta
</a>
</mat-card-content>

<mat-vertical-stepper
Expand Down Expand Up @@ -65,6 +66,13 @@
</mat-card>

<footer>
<a
[routerLink]="['..','cadastrar']"
[queryParams]="route.snapshot.queryParams"
mat-button
>
Criar minha conta
</a>
<a
target="_blank"
rel="noopener noreferrer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

&-content {
padding: 0em 3.8em 0;
padding: 0.3em 3.8em 1em;
}

p {
Expand All @@ -48,6 +48,6 @@
footer {
margin: 1em;
display: flex;
justify-content: flex-end;
justify-content: space-between;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
</mat-card-content>

<mat-card-actions class="registration-card-actions">
<a routerLink="../acessar" mat-button> Já tenho uma conta </a>

<button mat-flat-button>Cadastrar</button>

<a routerLink="../acessar" mat-button> Já tenho uma conta </a>
</mat-card-actions>
</mat-card>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

&-actions {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
}

Expand Down

0 comments on commit 15bb684

Please sign in to comment.