mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-02 23:52:36 +02:00
added phone number to contact info
This commit is contained in:
@@ -16,4 +16,5 @@ test("getContactHref", () => {
|
||||
expect(getContactHref("soundcloud", "#")).toBe("https://soundcloud.com/#");
|
||||
expect(getContactHref("instagram", "#")).toBe("https://www.instagram.com/#");
|
||||
expect(getContactHref("linkedin", "#")).toBe("https://www.linkedin.com/in/#");
|
||||
expect(getContactHref("phone", "+123")).toBe("tel:+123");
|
||||
});
|
||||
|
@@ -15,6 +15,7 @@ const getContactHref = (name: string, contact: string) => {
|
||||
instagram: `https://www.instagram.com/${contact}`,
|
||||
linkedin: `https://www.linkedin.com/in/${contact}`,
|
||||
youtube: `https://www.youtube.com/c/${contact}`,
|
||||
phone: `tel:${contact}`,
|
||||
};
|
||||
|
||||
return hrefs[name] ?? contact;
|
||||
|
Reference in New Issue
Block a user