-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#743 #752
#743 #752
Conversation
@@ -1,7 +1,13 @@ | |||
<div class="container" fxLayout="column" | |||
[fxLayout.lt-lg]="(isMobileScreen$ | async) ? 'column' : 'row wrap'" | |||
[fxLayoutAlign]="(isMobileScreen$ | async) ? 'none' : 'center start'"> | |||
<app-actions *ngIf="role !== Role.provider" [role]="role" [workshop]="workshop"></app-actions> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to follow general styleguides of the application and fix indentations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -28,6 +29,7 @@ export class ActionsComponent implements OnInit, OnDestroy { | |||
@Input() workshop: Workshop; | |||
@Input() role: string; | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line please
@@ -11,8 +11,9 @@ import { Favorite } from 'src/app/shared/models/favorite.model'; | |||
import { CreateFavoriteWorkshop, DeleteFavoriteWorkshop } from 'src/app/shared/store/user.actions'; | |||
import { ShowMessageBar } from 'src/app/shared/store/app.actions'; | |||
import { ActivatedRoute } from '@angular/router'; | |||
import { takeUntil } from 'rxjs/operators'; | |||
import { filter, map, takeUntil } from 'rxjs/operators'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove please unused operators
ngOnInit(): void { | ||
this.isMobileScreen$.pipe( | ||
takeUntil(this.destroy$) | ||
).subscribe((boolean) => this.isMobileScreen = boolean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add type please
).subscribe((boolean) => this.isMobileScreen = boolean) | |
).subscribe((isMobile: boolean) => this.isMobileScreen = isMobile) |
@@ -13,12 +14,24 @@ import { Observable } from 'rxjs'; | |||
export class SideMenuComponent implements OnInit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you added ngOnDesctroy, then you need to add this interface here
export class SideMenuComponent implements OnInit { | |
export class SideMenuComponent implements OnInit, OnDestroy { |
[fxLayoutAlign]="isMobileScreen ? 'none' : 'center start'"> | ||
<ng-conteiner *ngIf="!isMobileScreen"> | ||
<app-actions *ngIf="(role !== Role.provider)" [role]="role" [workshop]="workshop" | ||
[isMobileScreen$]="isMobileScreen$"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you're passing this value to the child component, why I don't see the Input for it? I see you're using selector in actions.ts, then maybe this input should be removed? Otherwise, remove selector.
done