mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
31 lines
720 B
TypeScript
31 lines
720 B
TypeScript
import styled from 'styled-components';
|
|
import { getAppDispatch } from '../../state/dispatch';
|
|
import { updateTermsOfServicePrivacyModal } from '../../state/onboarding/ducks/modals';
|
|
import { Localizer } from '../basic/Localizer';
|
|
|
|
const StyledTermsAndConditions = styled.div`
|
|
text-align: center;
|
|
font-size: 12px;
|
|
|
|
b {
|
|
font-weight: bold;
|
|
}
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
`;
|
|
|
|
export const TermsAndConditions = () => {
|
|
const dispatch = getAppDispatch();
|
|
|
|
return (
|
|
<StyledTermsAndConditions
|
|
onClick={() => dispatch(updateTermsOfServicePrivacyModal({ show: true }))}
|
|
data-testid="open-url"
|
|
>
|
|
<Localizer token="onboardingTosPrivacy" />
|
|
</StyledTermsAndConditions>
|
|
);
|
|
};
|