Collect preferred name on sign up and use it

This commit is contained in:
2022-08-25 02:16:28 +00:00
parent 590b37c085
commit 847f4bea92
9 changed files with 45 additions and 35 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ export function AdminVet(props) {
onClick={handleVet}
loading={loading}
>
{yousure ? 'You Sure?' : 'Vet ' + member.first_name}
{yousure ? 'You Sure?' : 'Vet ' + member.preferred_name}
</Button>
);
}
@@ -87,7 +87,7 @@ export function AdminVetting(props) {
<Table.Body>
{(displayAll ? vetting : vetting.slice(0,5)).map(x =>
<Table.Row key={x.id}>
<Table.Cell><Link to={'/members/'+x.id}>{x.first_name} {x.last_name}</Link></Table.Cell>
<Table.Cell><Link to={'/members/'+x.id}>{x.preferred_name} {x.last_name}</Link></Table.Cell>
<Table.Cell><a href={'mailto:'+x.email}>Email</a></Table.Cell>
<Table.Cell>
<Icon name='circle' color={statusColor[x.status]} />