mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* Make Jitsi WCAG 2.1 compliant * Fixed password form keypress handling * Added keypress handler to name form * Removed unneccessary dom query * Fixed mouse hove style * Removed obsolete css rules * accessibilty background feature * Merge remote-tracking branch 'upstream/master' into nic/fix/merge-conflicts * fix error * add german translation * Fixed merge issue * Add id prop back to device selection * Fixed lockfile Co-authored-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
// @flow
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { translate } from '../../base/i18n';
|
|
|
|
|
|
/**
|
|
* The type of the React {@code Component} props of
|
|
* {@link MicrosoftSignInButton}.
|
|
*/
|
|
type Props = {
|
|
|
|
/**
|
|
* The callback to invoke when {@code MicrosoftSignInButton} is clicked.
|
|
*/
|
|
onClick: Function,
|
|
|
|
/**
|
|
* The text to display within {@code MicrosoftSignInButton}.
|
|
*/
|
|
text: string,
|
|
|
|
/**
|
|
* Invoked to obtain translated strings.
|
|
*/
|
|
t: Function
|
|
};
|
|
|
|
/**
|
|
* A React Component showing a button to sign in with Microsoft.
|
|
*
|
|
* @extends Component
|
|
*/
|
|
class MicrosoftSignInButton extends Component<Props> {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<div
|
|
className = 'microsoft-sign-in'
|
|
onClick = { this.props.onClick }>
|
|
<img
|
|
alt = { this.props.t('welcomepage.logo.microsoftLogo') }
|
|
className = 'microsoft-logo'
|
|
src = 'images/microsoftLogo.svg' />
|
|
<div className = 'microsoft-cta'>
|
|
{ this.props.text }
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default translate(MicrosoftSignInButton);
|