fix: remove unused string, rename string
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user