mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Removes files that came from the merge and do not exist in master.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import React from 'react';
|
||||
import styles from './style.css';
|
||||
import cn from 'classnames';
|
||||
|
||||
export default class LoveIcon extends React.Component {
|
||||
|
||||
render() {
|
||||
const {me} = this.props.data;
|
||||
let love = me && me.roles && me.roles[0] === 'ADMIN';
|
||||
|
||||
return (
|
||||
<div className={styles.love}>
|
||||
<button
|
||||
className={cn(styles.button, {[styles.love]: love})} >
|
||||
<i className={cn('love')} aria-hidden="true"/>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
.love {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.button {
|
||||
color: #2a2a2a;
|
||||
margin: 5px 10px 5px 0px;
|
||||
background: none;
|
||||
padding: 0px;
|
||||
border: none;
|
||||
font-size: inherit;
|
||||
|
||||
&:hover {
|
||||
color: #767676;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.love {
|
||||
color: #c98211;
|
||||
|
||||
&:hover {
|
||||
color: #e59614;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
padding: 0 5px;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import {compose, gql, graphql} from 'react-apollo';
|
||||
import LoveIcon from '../components/LoveIcon';
|
||||
|
||||
export const LOVE_QUERY = gql`
|
||||
query LoveQuery {
|
||||
me {
|
||||
status
|
||||
roles
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const withQuery = graphql(LOVE_QUERY);
|
||||
|
||||
const enhance = compose(
|
||||
withQuery,
|
||||
);
|
||||
|
||||
export default enhance(LoveIcon);
|
||||
@@ -3,7 +3,7 @@ import LoveButton from './LoveButton';
|
||||
import translations from './translations.json';
|
||||
import {loadTranslations} from '/coral-framework/services/i18n';
|
||||
|
||||
Promise.all([loadTranslations(translations)]);
|
||||
loadTranslations(translations);
|
||||
|
||||
export default {
|
||||
slots: {
|
||||
|
||||
Reference in New Issue
Block a user