The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/sidebar/header/actions/Login.js

14 lines
514 B

import React from 'react';
import { Sidebar } from '@rocket.chat/fuselage';
import { useSessionDispatch } from '../../../contexts/SessionContext';
import { useTranslation } from '../../../contexts/TranslationContext';
const Login = (props) => {
const setForceLogin = useSessionDispatch('forceLogin');
const t = useTranslation();
return <Sidebar.TopBar.Action {...props} primary ghost={false} icon='login' title={t('Sign_in_to_start_talking')} onClick={() => setForceLogin(true)}/>;
};
export default Login;