From 100add9cb19aba719f24175d02994979b890a68e Mon Sep 17 00:00:00 2001 From: Kacper-RF <111343884+Kacper-RF@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:20:32 +0200 Subject: [PATCH] bug/1976 - display a shorter invite link on a mobile (#1983) * feat:display a shorter invite link on a mobile * fix: use numberOfLines * fix:add long invitation link to story for context menu --- CHANGELOG.md | 2 ++ .../mobile/src/components/ContextMenu/ContextMenu.component.tsx | 1 + .../mobile/src/components/ContextMenu/ContextMenu.stories.tsx | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11be2c541d..a0be3fa7d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ * Shorter dots-placeholder for invite link +* Display a shorter invite link on a mobile + * Removed registration attempts selector and corresponding usage. * Revert adjusting bootstrap scripts for developing on Windows diff --git a/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx b/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx index f8ff1e4db3..de8f56f222 100644 --- a/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx +++ b/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx @@ -133,6 +133,7 @@ export const ContextMenu: FC = ({ diff --git a/packages/mobile/src/components/ContextMenu/ContextMenu.stories.tsx b/packages/mobile/src/components/ContextMenu/ContextMenu.stories.tsx index 0b8ee59402..fe609bc3d1 100644 --- a/packages/mobile/src/components/ContextMenu/ContextMenu.stories.tsx +++ b/packages/mobile/src/components/ContextMenu/ContextMenu.stories.tsx @@ -60,7 +60,7 @@ storiesOf('ContextMenu', module) title={'Add members'} items={invitation_items} hint={'Anyone with Quiet app can follow this link to join this community. Only share with people you trust.'} - link={'https://chat.quiet.org/quiet://?code=bidrmzr3ee6qa2vvrlcnqvvvsk2gmjktcqkunba326parszr44gibwyd'} + link={`https://tryquiet.org/join#QmNzTe4kwwq7yDrC9GRXWFT5JoBSGukWAcLSTMYPmrensB=vag3ot2imv7lrwsqesv2qykyx2fxenvjfcawgngab6gjzo2gg5o5vqqd&QmZx8actcU9E49Dff3PDVyXTCrVor9iBQryxfasfN4Drxo=sdiy7sermcmtaomn4w3bnxlmdqoun5bxre34xfcaxckhy7obhphcypad&QmQGCuEB5ChnqYCGu5nuBhtyzd9BmDdVUH9neaHNuCDd1M=pr42dxkelrs5iy2a4n4ycv2ptzk4yur274hq2zfshvgxu5rpay6lghqd&QmZgT4AbyPZjEPvMkpjCvfRSDYcrcyUiwTMDNF8rEigqHT=ka5m3rho2gvldgmigp7jn5taok7nwyp5v2fix3jdirpsyf7rdm547cqd`} visible={true} handleClose={() => { console.log('closing menu')