diff --git a/src/components/Sidebar/Contacts/__snapshots__/Contacts.test.js.snap b/src/components/Sidebar/Contacts/__snapshots__/Contacts.test.js.snap index 5353a3f..3e83822 100644 --- a/src/components/Sidebar/Contacts/__snapshots__/Contacts.test.js.snap +++ b/src/components/Sidebar/Contacts/__snapshots__/Contacts.test.js.snap @@ -122,7 +122,7 @@ exports[`Contacts renders correctly 1`] = ` > diff --git a/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap b/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap index 010afbe..491c633 100644 --- a/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap +++ b/src/components/Sidebar/__snapshots__/Sidebar.test.js.snap @@ -108,7 +108,7 @@ exports[`Sidebar renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/categories-list-template.test.js.snap b/src/templates/__snapshots__/categories-list-template.test.js.snap index 3ff538b..626cb17 100644 --- a/src/templates/__snapshots__/categories-list-template.test.js.snap +++ b/src/templates/__snapshots__/categories-list-template.test.js.snap @@ -111,7 +111,7 @@ exports[`CategoriesListTemplate renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/category-template.test.js.snap b/src/templates/__snapshots__/category-template.test.js.snap index 4f49bb1..f2094f6 100644 --- a/src/templates/__snapshots__/category-template.test.js.snap +++ b/src/templates/__snapshots__/category-template.test.js.snap @@ -111,7 +111,7 @@ exports[`CategoryTemplate renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/index-template.test.js.snap b/src/templates/__snapshots__/index-template.test.js.snap index bc0442a..7ed0225 100644 --- a/src/templates/__snapshots__/index-template.test.js.snap +++ b/src/templates/__snapshots__/index-template.test.js.snap @@ -111,7 +111,7 @@ exports[`IndexTemplate renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/not-found-template.test.js.snap b/src/templates/__snapshots__/not-found-template.test.js.snap index a85ec94..9d32890 100644 --- a/src/templates/__snapshots__/not-found-template.test.js.snap +++ b/src/templates/__snapshots__/not-found-template.test.js.snap @@ -111,7 +111,7 @@ exports[`NotFoundTemplate renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/page-template.test.js.snap b/src/templates/__snapshots__/page-template.test.js.snap index 2a3eccb..843942d 100644 --- a/src/templates/__snapshots__/page-template.test.js.snap +++ b/src/templates/__snapshots__/page-template.test.js.snap @@ -111,7 +111,7 @@ exports[`PageTemplate renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/tag-template.test.js.snap b/src/templates/__snapshots__/tag-template.test.js.snap index 41b40ef..d8fda83 100644 --- a/src/templates/__snapshots__/tag-template.test.js.snap +++ b/src/templates/__snapshots__/tag-template.test.js.snap @@ -111,7 +111,7 @@ exports[`TagTemplate renders correctly 1`] = ` > diff --git a/src/templates/__snapshots__/tags-list-template.test.js.snap b/src/templates/__snapshots__/tags-list-template.test.js.snap index f8d1eed..ef5fe97 100644 --- a/src/templates/__snapshots__/tags-list-template.test.js.snap +++ b/src/templates/__snapshots__/tags-list-template.test.js.snap @@ -111,7 +111,7 @@ exports[`TagsListTemplate renders correctly 1`] = ` > diff --git a/src/utils/get-contact-href.js b/src/utils/get-contact-href.js index c310560..2114db8 100644 --- a/src/utils/get-contact-href.js +++ b/src/utils/get-contact-href.js @@ -13,7 +13,7 @@ const getContactHref = (name: string, contact: string) => { href = `https://vk.com/${contact}`; break; case 'telegram': - href = `telegram:${contact}`; + href = `https://t.me/${contact}`; break; case 'email': href = `mailto:${contact}`; diff --git a/src/utils/get-contact-href.test.js b/src/utils/get-contact-href.test.js index 1cf3097..0787123 100644 --- a/src/utils/get-contact-href.test.js +++ b/src/utils/get-contact-href.test.js @@ -6,6 +6,6 @@ test('getContactHref', () => { expect(getContactHref('github', '#')).toBe('https://github.com/#'); expect(getContactHref('email', '#')).toBe('mailto:#'); expect(getContactHref('vkontakte', '#')).toBe('https://vk.com/#'); - expect(getContactHref('telegram', '#')).toBe('telegram:#'); + expect(getContactHref('telegram', '#')).toBe('https://t.me/#'); expect(getContactHref('rss', '#')).toBe('#'); });