fix: remove unused string, rename string
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<div class="contact-list">
|
<div class="contact-list">
|
||||||
<div class="contact-list__container">
|
<div class="contact-list__container">
|
||||||
<h2>{{strings.constacts|upperfirst}}</h2>
|
<h2>{{strings.contacts|upperfirst}}</h2>
|
||||||
<app-contact-search-bar (contactSearch)="filter=$event"/>
|
<app-contact-search-bar (contactSearch)="filter=$event"/>
|
||||||
<app-counter
|
<app-counter
|
||||||
[count]="(this.contacts$|async)?.length ?? 0"
|
[count]="(this.contacts$|async)?.length ?? 0"
|
||||||
item="{{strings.constacts}}"
|
item="{{strings.contacts}}"
|
||||||
/>
|
/>
|
||||||
<app-contact-list-table [contactList]="(this.contacts$|async)|contactsFilter:filter"/>
|
<app-contact-list-table [contactList]="(this.contacts$|async)|contactsFilter:filter"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export const strings = Object.freeze({
|
|||||||
addContact: 'add a contact',
|
addContact: 'add a contact',
|
||||||
allFieldRequired: 'all fields are required',
|
allFieldRequired: 'all fields are required',
|
||||||
company: 'company',
|
company: 'company',
|
||||||
constacts: 'contacts',
|
contacts: 'contacts',
|
||||||
contactsName: "Contact's name",
|
contactsName: "Contact's name",
|
||||||
contactsCompany: "Contact's company",
|
contactsCompany: "Contact's company",
|
||||||
contactsPhone: "Contact's phone",
|
contactsPhone: "Contact's phone",
|
||||||
@@ -12,7 +12,6 @@ export const strings = Object.freeze({
|
|||||||
editContact: 'edit contact',
|
editContact: 'edit contact',
|
||||||
editTheContact: 'edit the contact',
|
editTheContact: 'edit the contact',
|
||||||
errorMessageMaxLength: (maxLen: number) => `Must be ${maxLen} characters or fewer.`,
|
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`,
|
errorMessagePhonePattern: `Valid format: + (optional) plus 12 to 15 digits`,
|
||||||
errorMessageRequired: 'This field is required.',
|
errorMessageRequired: 'This field is required.',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
Reference in New Issue
Block a user