Moves navigateTo to util
This commit is contained in:
parent
b64908d01d
commit
1d2fcde49f
5 changed files with 23 additions and 20 deletions
|
@ -8,6 +8,7 @@ import { ConversationType } from '../state/ducks/conversations';
|
|||
import { Intl } from './Intl';
|
||||
import { ContactName } from './conversation/ContactName';
|
||||
import { GroupDialog } from './GroupDialog';
|
||||
import { openLinkInWebBrowser } from '../util/openLinkInWebBrowser';
|
||||
|
||||
type PropsType = {
|
||||
contacts: Array<ConversationType>;
|
||||
|
@ -68,8 +69,9 @@ export const NewlyCreatedGroupInvitedContactsDialog: FunctionComponent<PropsType
|
|||
'NewlyCreatedGroupInvitedContactsDialog--body--learn-more'
|
||||
)}
|
||||
onClickSecondaryButton={() => {
|
||||
window.location.href =
|
||||
'https://support.signal.org/hc/articles/360007319331-Group-chats';
|
||||
openLinkInWebBrowser(
|
||||
'https://support.signal.org/hc/articles/360007319331-Group-chats'
|
||||
);
|
||||
}}
|
||||
onClose={onClose}
|
||||
title={title}
|
||||
|
|
|
@ -12,6 +12,7 @@ import { ConfirmationDialog } from '../ConfirmationDialog';
|
|||
import { Button, ButtonSize, ButtonVariant } from '../Button';
|
||||
import { shouldBlurAvatar } from '../../util/shouldBlurAvatar';
|
||||
import * as log from '../../logging/log';
|
||||
import { openLinkInWebBrowser } from '../../util/openLinkInWebBrowser';
|
||||
|
||||
export type Props = {
|
||||
about?: string;
|
||||
|
@ -237,8 +238,9 @@ export const ConversationHero = ({
|
|||
{
|
||||
text: i18n('MessageRequestWarning__dialog__learn-even-more'),
|
||||
action: () => {
|
||||
window.location.href =
|
||||
'https://support.signal.org/hc/articles/360007459591';
|
||||
openLinkInWebBrowser(
|
||||
'https://support.signal.org/hc/articles/360007459591'
|
||||
);
|
||||
closeMessageRequestWarning();
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue