@universal-tennis/ui-shared 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,11 +13,11 @@ type ContactCardProps = {
13
13
  name: string;
14
14
  phone: string;
15
15
  email: string;
16
- handleOnMessageClick?: VoidFunction;
16
+ onMessageClick?: VoidFunction;
17
17
  }
18
18
 
19
19
  export default function ContactCard({
20
- name, phone, email, handleOnMessageClick, ...props
20
+ name, phone, email, onMessageClick, ...props
21
21
  }: ContactCardProps) {
22
22
  const firstName = name.split(" ")[0];
23
23
  const parsedNumber = parsePhoneNumber(phone || '');
@@ -40,7 +40,7 @@ export default function ContactCard({
40
40
  <Typography category="secondary" size="x-small-book">{email}</Typography>
41
41
  </Link>
42
42
  )}
43
- <Button onClick={handleOnMessageClick} category="link" style={{marginTop: '8px'}}>
43
+ <Button onClick={onMessageClick} category="link" style={{marginTop: '8px'}}>
44
44
  <>
45
45
  <img src={ChatIcon} alt="message" style={{width: '20px'}} />
46
46
  <Typography style={{paddingLeft: '8px'}} category="secondary" size="x-small-book">