fix: remove unused string, rename string

This commit is contained in:
2025-12-18 23:06:12 -03:00
parent be86d2353d
commit 0c0f4024df
2 changed files with 3 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
<div class="contact-list">
<div class="contact-list__container">
<h2>{{strings.constacts|upperfirst}}</h2>
<h2>{{strings.contacts|upperfirst}}</h2>
<app-contact-search-bar (contactSearch)="filter=$event"/>
<app-counter
[count]="(this.contacts$|async)?.length ?? 0"
item="{{strings.constacts}}"
item="{{strings.contacts}}"
/>
<app-contact-list-table [contactList]="(this.contacts$|async)|contactsFilter:filter"/>
</div>

View File

@@ -4,7 +4,7 @@ export const strings = Object.freeze({
addContact: 'add a contact',
allFieldRequired: 'all fields are required',
company: 'company',
constacts: 'contacts',
contacts: 'contacts',
contactsName: "Contact's name",
contactsCompany: "Contact's company",
contactsPhone: "Contact's phone",
@@ -12,7 +12,6 @@ export const strings = Object.freeze({
editContact: 'edit contact',
editTheContact: 'edit the contact',
errorMessageMaxLength: (maxLen: number) => `Must be ${maxLen} characters or fewer.`,
errorMessageMinLength: (minLen: number) => `Must be at least ${minLen} characters long.`,
errorMessagePhonePattern: `Valid format: + (optional) plus 12 to 15 digits`,
errorMessageRequired: 'This field is required.',
name: 'name',