mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
tweak(phone): Remove FontAwesome dependency
All icons were switched to @material-ui/icons
This commit is contained in:
1 parent
71bb73b54e
commit
b14562eb9d
10 files changed
+18
-140
No files matched your search
@@ -1,8 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import { CircularProgress, makeStyles, Button } from '@material-ui/core';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faRetweet } from '@fortawesome/free-solid-svg-icons';
|
||||
import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
import { Repeat } from '@material-ui/icons';
|
||||
import { TwitterEvents } from '../../../../../../typings/twitter';
|
||||
|
||||
interface IProps {
|
||||
@@ -55,7 +54,7 @@ export const RetweetButton = ({ tweetId, isRetweet, retweetId }: IProps) => {
|
||||
|
||||
return (
|
||||
<Button onClick={handleClick}>
|
||||
<FontAwesomeIcon icon={faRetweet} className={className} size="lg" />
|
||||
<Repeat className={className} />
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
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 { Repeat } from '@material-ui/icons';
|
||||
|
||||
interface IProps {
|
||||
profileName: string;
|
||||
@@ -25,7 +24,7 @@ function Retweet({ profileName }: IProps) {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
<FontAwesomeIcon icon={faRetweet} /> {profileName} {t('APPS_TWITTER_RETWEETED')}
|
||||
<Repeat /> {profileName} {t('APPS_TWITTER_RETWEETED')}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user