Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
map((translations: string) => {
const formFields: FormField[] = [
{
key: 'username',
label: translations['username.search'],
type: DataTypeEnum.TEXT,
value: '',
options: [],
hint: translations['username.search'],
matIconPrefix: 'person_pin',
validators: [Validators.required]
}
];
return { fields: formFields };
})
);
map((translations: string) => {
const formFields: FormField[] = [
{
key: 'username',
label: translations['username.search'],
type: DataTypeEnum.TEXT,
value: '',
options: [],
hint: translations['username.search'],
matIconPrefix: 'person_pin',
validators: [Validators.required]
}
];
return { fields: formFields };
})
);