Implement facebook auth client

This commit is contained in:
Chi Vinh Le
2018-02-13 12:26:55 +01:00
parent 3999b806c7
commit d857585c7f
10 changed files with 93 additions and 0 deletions
@@ -0,0 +1,13 @@
.button {
background-color: #4267b2;
border-color: #4267b2;
color: rgb(255, 255, 255);
width: 100%;
box-sizing: border-box;
padding: 10px 20px;
}
.button:hover {
background-color: #365899;
border-color: #365899;
}
@@ -0,0 +1,11 @@
import React from 'react';
import { BareButton } from 'plugin-api/beta/client/components/ui';
import styles from './FacebookButton.css';
export default ({ onClick, children }) => {
return (
<BareButton className={styles.button} onClick={onClick}>
{children}
</BareButton>
);
};
@@ -0,0 +1,9 @@
import React from 'react';
import FacebookButton from '../containers/FacebookButton';
import { t } from 'plugin-api/beta/client/services';
export default () => {
return (
<FacebookButton>{t('talk-plugin-facebook-auth.sign_in')}</FacebookButton>
);
};
@@ -0,0 +1,9 @@
import React from 'react';
import FacebookButton from '../containers/FacebookButton';
import { t } from 'plugin-api/beta/client/services';
export default () => {
return (
<FacebookButton>{t('talk-plugin-facebook-auth.sign_up')}</FacebookButton>
);
};