Skip to content

Commit 15bb684

Browse files
committed
fix(account): corrige erro de duplicação ao criar uma nova conta
1 parent 59931c0 commit 15bb684

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

apps/devmx/src/app/app.sections.ts

+16-22
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const appSections: SectionHeaderOptions[] = [
66
expanded: true,
77
links: [
88
{
9-
label: 'Conta',
9+
label: 'Inicio',
1010
route: ['/conta'],
1111
icon: 'menu/home-4',
1212
},
@@ -21,7 +21,7 @@ export const appSections: SectionHeaderOptions[] = [
2121
icon: 'camera-shutter',
2222
},
2323
{
24-
label: 'Apresentações',
24+
label: 'Conhecimento',
2525
route: ['/apresentacoes'],
2626
icon: 'presentation',
2727
},
@@ -76,12 +76,23 @@ export const appSections: SectionHeaderOptions[] = [
7676
icon: 'music/speaker',
7777
roles: ['recruiter'],
7878
},
79+
// {
80+
// label: 'Aprenda',
81+
// route: ['/aprenda', 'administracao'],
82+
// icon: 'book-opened',
83+
// roles: ['member'],
84+
// },
7985
{
80-
label: 'Aprenda',
81-
route: ['/aprenda', 'administracao'],
82-
icon: 'book-opened',
86+
label: 'Sobre você',
87+
route: ['/conta', 'configuracoes'],
88+
icon: 'doc/id-card',
8389
roles: ['member'],
8490
},
91+
{
92+
label: 'Sair',
93+
route: ['/conta', 'sair'],
94+
icon: 'exit',
95+
},
8596
],
8697
},
8798
{
@@ -126,21 +137,4 @@ export const appSections: SectionHeaderOptions[] = [
126137
},
127138
],
128139
},
129-
{
130-
label: 'Conta',
131-
expanded: true,
132-
links: [
133-
{
134-
label: 'Sobre você',
135-
route: ['/conta', 'configuracoes'],
136-
icon: 'doc/id-card',
137-
roles: ['member'],
138-
},
139-
{
140-
label: 'Sair',
141-
route: ['/conta', 'sair'],
142-
icon: 'exit',
143-
},
144-
],
145-
},
146140
];

packages/account/data-access/src/lib/application/authentication.facade.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ export class AuthenticationFacade extends State<AuthenticationState> {
7171
createUser(data: CreateUser) {
7272
this.setState({ loading: true });
7373

74-
const request$ = this.createUserUseCase.execute(data);
75-
request$.pipe(take(1)).subscribe();
76-
77-
return request$;
74+
return this.createUserUseCase.execute(data).pipe(take(1));
7875
}
7976

8077
signOut() {

packages/account/feature-auth/src/lib/containers/authentication/authentication.container.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
<a
1111
[routerLink]="['..','cadastrar']"
1212
[queryParams]="route.snapshot.queryParams"
13-
mat-button
14-
>Quero criar minha conta</a
13+
mat-raised-button
1514
>
15+
Quero criar minha conta
16+
</a>
1617
</mat-card-content>
1718

1819
<mat-vertical-stepper
@@ -65,6 +66,13 @@
6566
</mat-card>
6667

6768
<footer>
69+
<a
70+
[routerLink]="['..','cadastrar']"
71+
[queryParams]="route.snapshot.queryParams"
72+
mat-button
73+
>
74+
Criar minha conta
75+
</a>
6876
<a
6977
target="_blank"
7078
rel="noopener noreferrer"

packages/account/feature-auth/src/lib/containers/authentication/authentication.container.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
&-content {
34-
padding: 0em 3.8em 0;
34+
padding: 0.3em 3.8em 1em;
3535
}
3636

3737
p {
@@ -48,6 +48,6 @@
4848
footer {
4949
margin: 1em;
5050
display: flex;
51-
justify-content: flex-end;
51+
justify-content: space-between;
5252
}
5353
}

packages/account/feature-auth/src/lib/containers/registration/registration.container.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
</mat-card-content>
6767

6868
<mat-card-actions class="registration-card-actions">
69-
<a routerLink="../acessar" mat-button> Já tenho uma conta </a>
70-
7169
<button mat-flat-button>Cadastrar</button>
70+
71+
<a routerLink="../acessar" mat-button> Já tenho uma conta </a>
7272
</mat-card-actions>
7373
</mat-card>
7474

packages/account/feature-auth/src/lib/containers/registration/registration.container.scss

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
&-actions {
4646
display: flex;
47+
flex-direction: row-reverse;
4748
justify-content: space-between;
4849
}
4950

0 commit comments

Comments
 (0)