[Feature] Twitter retweets (#143)

Feature: Retweets
This commit is contained in:
Erik authored and GitHub committed 2021-03-07 16:03:33 +01:00
1 parent 1a09fa57ae
commit 21152fa38a
16 files changed
+382 -142

No files matched your search

@@ -0,0 +1,35 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { makeStyles } from '@material-ui/core/styles';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faRetweet } from '@fortawesome/free-solid-svg-icons';
import { ITwitterTheme } from '../../twitter.theme';
interface IProps {
profileName: string;
}
const useStyles = makeStyles((theme: ITwitterTheme) => ({
root: {
color: theme.palette.secondary.main,
fontSize: '16px',
justifyContent: 'flex-start',
width: '100%',
paddingBottom: '8px',
marginBottom: '6px',
marginTop: '-6px'
},
}));
function Retweet({ profileName }: IProps) {
const { t } = useTranslation();
const classes = useStyles();
return (
<div className={classes.root}>
<FontAwesomeIcon icon={faRetweet} /> {profileName} {t('APPS_TWITTER_RETWEETED')}
</div>
)
}
export default Retweet;