allaw-ui 3.7.6 → 3.7.7
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.
|
@@ -10,7 +10,8 @@ export interface ContactCardProps {
|
|
|
10
10
|
gender: "male" | "female";
|
|
11
11
|
actionsButton?: ReactNode;
|
|
12
12
|
actionIconName?: string;
|
|
13
|
-
|
|
13
|
+
clientOfStudy?: boolean;
|
|
14
|
+
officeName?: "du cabinet" | "de l'étude";
|
|
14
15
|
}
|
|
15
16
|
declare const ContactCard: React.FC<ContactCardProps>;
|
|
16
17
|
export default ContactCard;
|
|
@@ -3,10 +3,10 @@ import styles from "./contactCard.module.css";
|
|
|
3
3
|
import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
|
|
4
4
|
import Link from "next/link";
|
|
5
5
|
var ContactCard = function (_a) {
|
|
6
|
-
var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, onClick = _a.onClick, actionsButton = _a.actionsButton,
|
|
6
|
+
var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, onClick = _a.onClick, actionsButton = _a.actionsButton, _b = _a.clientOfStudy, clientOfStudy = _b === void 0 ? false : _b, _c = _a.officeName, officeName = _c === void 0 ? "du cabinet" : _c;
|
|
7
7
|
var isPhoneEmpty = !phone || phone.trim() === "";
|
|
8
8
|
var isEmailEmpty = !email || email.trim() === "";
|
|
9
|
-
var displayClientLabel =
|
|
9
|
+
var displayClientLabel = clientOfStudy ? "Client ".concat(officeName) : "Non client";
|
|
10
10
|
return (React.createElement("div", { className: styles.contactCard, onClick: function () { return onClick && onClick(); }, style: { cursor: onClick ? "pointer" : "default" } },
|
|
11
11
|
React.createElement("div", { className: styles.contentContainer },
|
|
12
12
|
React.createElement("div", { className: styles.nameTagContainer },
|