mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
add Google auth plugin
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
.button {
|
||||
background-color: #db3236;
|
||||
border-color: #db3236;
|
||||
color: rgb(255, 255, 255);
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
background-color: #c71e22;
|
||||
border-color: #c71e22;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
import { BareButton } from 'plugin-api/beta/client/components/ui';
|
||||
import styles from './GoogleButton.css';
|
||||
|
||||
export default ({ onClick, children }) => {
|
||||
return (
|
||||
<BareButton className={styles.button} onClick={onClick}>
|
||||
{children}
|
||||
</BareButton>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import GoogleButton from '../containers/GoogleButton';
|
||||
import { t } from 'plugin-api/beta/client/services';
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<GoogleButton>{t('talk-plugin-google-auth.sign_in')}</GoogleButton>
|
||||
);
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
import GoogleButton from '../containers/GoogleButton';
|
||||
import { t } from 'plugin-api/beta/client/services';
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<GoogleButton>{t('talk-plugin-google-auth.sign_up')}</GoogleButton>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user