Skip to content

Commit

Permalink
Merge pull request #434 from jdegand/interop-placeholder
Browse files Browse the repository at this point in the history
fix: change placeholder text
  • Loading branch information
tomalaforge authored Dec 22, 2023
2 parents dfc233b + d000db2 commit 747e43e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ import { PhotoStore } from './photos.store';
RouterLinkWithHref,
],
template: `
<h2 class="text-xl mb-2">Photos</h2>
<h2 class="mb-2 text-xl">Photos</h2>
<mat-form-field appearance="fill">
<mat-label>Search</mat-label>
<input
type="text"
matInput
[formControl]="search"
placeholder="write an article" />
placeholder="find a photo" />
</mat-form-field>
<ng-container *ngrxLet="vm$ as vm">
<section class="flex flex-col">
<section class="flex gap-3 items-center">
<section class="flex items-center gap-3">
<button
[disabled]="vm.page === 1"
[class.bg-gray-400]="vm.page === 1"
class="text-xl border rounded-md p-3"
class="rounded-md border p-3 text-xl"
(click)="store.previousPage()">
<
</button>
<button
[disabled]="vm.endOfPage"
[class.bg-gray-400]="vm.endOfPage"
class="text-xl border rounded-md p-3"
class="rounded-md border p-3 text-xl"
(click)="store.nextPage()">
>
</button>
Expand Down Expand Up @@ -93,7 +93,7 @@ export default class PhotosComponent implements OnInit {
this.search.setValue(search);
this.formInit = true;
}
})
}),
);

private formInit = false;
Expand All @@ -104,8 +104,8 @@ export default class PhotosComponent implements OnInit {
this.search.valueChanges.pipe(
skipWhile(() => !this.formInit),
debounceTime(300),
distinctUntilChanged()
)
distinctUntilChanged(),
),
);
}

Expand Down

0 comments on commit 747e43e

Please sign in to comment.