feat: added correct links to modal

pull/3056/head
William Grant 1 year ago
parent 131c114b24
commit cb517b4445

@ -1,4 +1,4 @@
import { noop } from 'lodash';
import { shell } from 'electron';
import { useDispatch } from 'react-redux';
import styled from 'styled-components';
import { updateTermsOfServicePrivacyModal } from '../../state/onboarding/ducks/modals';
@ -45,14 +45,18 @@ export function TermsOfServicePrivacyDialog(props: TermsOfServicePrivacyDialogPr
text={window.i18n('termsOfService')}
buttonType={SessionButtonType.ModalConfirm}
buttonShape={SessionButtonShape.None}
onClick={noop}
onClick={() => {
void shell.openExternal('https://getsession.org/terms-of-service');
}}
dataTestId="session-tos-button"
/>
<SessionButton
text={window.i18n('privacyPolicy')}
buttonType={SessionButtonType.ModalConfirm}
buttonShape={SessionButtonShape.None}
onClick={noop}
onClick={() => {
void shell.openExternal('https://getsession.org/privacy-policy');
}}
dataTestId="session-privacy-policy-button"
/>
</ConfirmButtonContainer>

Loading…
Cancel
Save