mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +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
@@ -6,10 +6,6 @@
|
|||||||
"license": "CC-BY-NC-SA-4.0",
|
"license": "CC-BY-NC-SA-4.0",
|
||||||
"homepage": "/resources/html",
|
"homepage": "/resources/html",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.15.1",
|
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
||||||
"@fortawesome/react-fontawesome": "^0.1.14",
|
|
||||||
"@material-ui/core": "^4.11.3",
|
"@material-ui/core": "^4.11.3",
|
||||||
"@material-ui/icons": "^4.11.2",
|
"@material-ui/icons": "^4.11.2",
|
||||||
"@material-ui/lab": "^4.0.0-alpha.56",
|
"@material-ui/lab": "^4.0.0-alpha.56",
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ import React, { useState } from 'react';
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
||||||
import { makeStyles } from '@material-ui/core/styles';
|
import { makeStyles } from '@material-ui/core/styles';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { Home, List, Payment } from '@material-ui/icons';
|
||||||
import { faHome, faList, faMoneyCheck } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -30,21 +29,9 @@ export const NavigationBar = () => {
|
|||||||
showLabels
|
showLabels
|
||||||
className={classes.root}
|
className={classes.root}
|
||||||
>
|
>
|
||||||
<BottomNavigationAction
|
<BottomNavigationAction component={Link} icon={<Home />} to="/bank" />
|
||||||
component={Link}
|
<BottomNavigationAction component={Link} icon={<Payment />} to="/bank/account" />
|
||||||
icon={<FontAwesomeIcon icon={faHome} />}
|
<BottomNavigationAction component={Link} icon={<List />} to="/bank/transactions" />
|
||||||
to="/bank"
|
|
||||||
/>
|
|
||||||
<BottomNavigationAction
|
|
||||||
component={Link}
|
|
||||||
icon={<FontAwesomeIcon icon={faMoneyCheck} />}
|
|
||||||
to="/bank/account"
|
|
||||||
/>
|
|
||||||
<BottomNavigationAction
|
|
||||||
component={Link}
|
|
||||||
icon={<FontAwesomeIcon icon={faList} />}
|
|
||||||
to="/bank/transactions"
|
|
||||||
/>
|
|
||||||
</BottomNavigation>
|
</BottomNavigation>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { AppWrapper } from '../../../ui/components/AppWrapper';
|
import { AppWrapper } from '../../../ui/components';
|
||||||
import { AppContent } from '../../../ui/components/AppContent';
|
import { AppContent } from '../../../ui/components/AppContent';
|
||||||
import { MarketplaceTitle } from './MarketplaceTitle';
|
|
||||||
import { MarketplaceListContainer } from './SelloutList/MarketplaceListContainer';
|
import { MarketplaceListContainer } from './SelloutList/MarketplaceListContainer';
|
||||||
import { NavigationBar } from './navigation/NavigationBar';
|
import { NavigationBar } from './navigation/NavigationBar';
|
||||||
import { Switch, Route } from 'react-router-dom';
|
import { Switch, Route } from 'react-router-dom';
|
||||||
@@ -9,12 +8,16 @@ import { ListingFormContainer } from './form/ListingFormContainer';
|
|||||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||||
import { MarketplaceThemeProvider } from '../providers/MarketplaceThemeProvider';
|
import { MarketplaceThemeProvider } from '../providers/MarketplaceThemeProvider';
|
||||||
import { MarketplaceEvents } from '../../../../../typings/marketplace';
|
import { MarketplaceEvents } from '../../../../../typings/marketplace';
|
||||||
|
import { AppTitle } from '../../../ui/components/AppTitle';
|
||||||
|
import { useApp } from '../../../os/apps/hooks/useApps';
|
||||||
|
|
||||||
export const MarketplaceApp = () => {
|
export const MarketplaceApp = () => {
|
||||||
|
const marketplaceApp = useApp('SELLOUT');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<MarketplaceThemeProvider>
|
<MarketplaceThemeProvider>
|
||||||
<AppWrapper id="sellout-app">
|
<AppWrapper id="sellout-app">
|
||||||
<MarketplaceTitle />
|
<AppTitle app={marketplaceApp} />
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/marketplace" exact component={MarketplaceListContainer} />
|
<Route path="/marketplace" exact component={MarketplaceListContainer} />
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import Paper from '@material-ui/core/Paper';
|
|
||||||
import { makeStyles } from '@material-ui/core';
|
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
||||||
import { faAd } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
|
||||||
root: {
|
|
||||||
height: '60px',
|
|
||||||
width: '100%',
|
|
||||||
display: 'flex',
|
|
||||||
flexFlow: 'row nowrap',
|
|
||||||
justifyContent: 'center',
|
|
||||||
alignItems: 'center',
|
|
||||||
background: theme.palette.background.default,
|
|
||||||
},
|
|
||||||
icon: {
|
|
||||||
color: theme.palette.primary.main,
|
|
||||||
fontSize: 40,
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
export const MarketplaceTitle = () => {
|
|
||||||
const classes = useStyles();
|
|
||||||
return (
|
|
||||||
<Paper className={classes.root} square variant="outlined" elevation={24}>
|
|
||||||
<FontAwesomeIcon icon={faAd} className={classes.icon} />
|
|
||||||
</Paper>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
@@ -2,9 +2,7 @@ import React, { useState } from 'react';
|
|||||||
import { makeStyles } from '@material-ui/core/styles';
|
import { makeStyles } from '@material-ui/core/styles';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { AddCircle, Home } from '@material-ui/icons/';
|
||||||
import { faHome } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
import AddCircleIcon from '@material-ui/icons/AddCircle';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -28,12 +26,8 @@ export const NavigationBar = () => {
|
|||||||
showLabels
|
showLabels
|
||||||
className={classes.root}
|
className={classes.root}
|
||||||
>
|
>
|
||||||
<BottomNavigationAction
|
<BottomNavigationAction component={Link} icon={<Home />} to="/marketplace" />
|
||||||
component={Link}
|
<BottomNavigationAction component={Link} icon={<AddCircle />} to="/marketplace/new" />
|
||||||
icon={<FontAwesomeIcon icon={faHome} />}
|
|
||||||
to="/marketplace"
|
|
||||||
/>
|
|
||||||
<BottomNavigationAction component={Link} icon={<AddCircleIcon />} to="/marketplace/new" />
|
|
||||||
</BottomNavigation>
|
</BottomNavigation>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
|
|
||||||
import { makeStyles, Paper } from '@material-ui/core';
|
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
||||||
import { faStickyNote } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
|
||||||
header: {
|
|
||||||
width: '100%',
|
|
||||||
display: 'flex',
|
|
||||||
flexFlow: 'row nowrap',
|
|
||||||
justifyContent: 'center',
|
|
||||||
alignItems: 'center',
|
|
||||||
textAlign: 'center',
|
|
||||||
height: '60px',
|
|
||||||
},
|
|
||||||
icon: {
|
|
||||||
color: theme.palette.primary.main,
|
|
||||||
fontSize: 40,
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
const NotesTitle = () => {
|
|
||||||
const classes = useStyles();
|
|
||||||
return (
|
|
||||||
<Paper elevation={24} square variant="outlined" className={classes.header}>
|
|
||||||
<FontAwesomeIcon icon={faStickyNote} className={classes.icon} size="lg" />
|
|
||||||
</Paper>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default NotesTitle;
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { CircularProgress, makeStyles, Button } from '@material-ui/core';
|
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 { useNuiRequest } from 'fivem-nui-react-lib';
|
||||||
|
import { Repeat } from '@material-ui/icons';
|
||||||
import { TwitterEvents } from '../../../../../../typings/twitter';
|
import { TwitterEvents } from '../../../../../../typings/twitter';
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
@@ -55,7 +54,7 @@ export const RetweetButton = ({ tweetId, isRetweet, retweetId }: IProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Button onClick={handleClick}>
|
<Button onClick={handleClick}>
|
||||||
<FontAwesomeIcon icon={faRetweet} className={className} size="lg" />
|
<Repeat className={className} />
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { makeStyles } from '@material-ui/core/styles';
|
import { makeStyles } from '@material-ui/core/styles';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { Repeat } from '@material-ui/icons';
|
||||||
import { faRetweet } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
profileName: string;
|
profileName: string;
|
||||||
@@ -25,7 +24,7 @@ function Retweet({ profileName }: IProps) {
|
|||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
return (
|
return (
|
||||||
<div className={classes.root}>
|
<div className={classes.root}>
|
||||||
<FontAwesomeIcon icon={faRetweet} /> {profileName} {t('APPS_TWITTER_RETWEETED')}
|
<Repeat /> {profileName} {t('APPS_TWITTER_RETWEETED')}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
"APPS_NOTES": "Notes",
|
"APPS_NOTES": "Notes",
|
||||||
"APPS_EXAMPLE": "Example app",
|
"APPS_EXAMPLE": "Example app",
|
||||||
"APPS_TWITTER": "Twitter",
|
"APPS_TWITTER": "Twitter",
|
||||||
"APPS_SELLOUT": "Market",
|
"APPS_SELLOUT": "Marketplace",
|
||||||
"APPS_CAMERA": "Camera",
|
"APPS_CAMERA": "Camera",
|
||||||
|
|
||||||
"APPS_CAMERA_FAILED_TO_TAKE_PHOTO": "Photo could not be saved :(",
|
"APPS_CAMERA_FAILED_TO_TAKE_PHOTO": "Photo could not be saved :(",
|
||||||
|
|||||||
@@ -1233,44 +1233,6 @@
|
|||||||
minimatch "^3.0.4"
|
minimatch "^3.0.4"
|
||||||
strip-json-comments "^3.1.1"
|
strip-json-comments "^3.1.1"
|
||||||
|
|
||||||
"@fortawesome/fontawesome-common-types@^0.2.32":
|
|
||||||
version "0.2.32"
|
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.32.tgz#3436795d5684f22742989bfa08f46f50f516f259"
|
|
||||||
integrity sha512-ux2EDjKMpcdHBVLi/eWZynnPxs0BtFVXJkgHIxXRl+9ZFaHPvYamAfCzeeQFqHRjuJtX90wVnMRaMQAAlctz3w==
|
|
||||||
|
|
||||||
"@fortawesome/fontawesome-common-types@^0.2.35":
|
|
||||||
version "0.2.35"
|
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.35.tgz#01dd3d054da07a00b764d78748df20daf2b317e9"
|
|
||||||
integrity sha512-IHUfxSEDS9dDGqYwIW7wTN6tn/O8E0n5PcAHz9cAaBoZw6UpG20IG/YM3NNLaGPwPqgjBAFjIURzqoQs3rrtuw==
|
|
||||||
|
|
||||||
"@fortawesome/fontawesome-svg-core@^1.2.35":
|
|
||||||
version "1.2.35"
|
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.35.tgz#85aea8c25645fcec88d35f2eb1045c38d3e65cff"
|
|
||||||
integrity sha512-uLEXifXIL7hnh2sNZQrIJWNol7cTVIzwI+4qcBIq9QWaZqUblm0IDrtSqbNg+3SQf8SMGHkiSigD++rHmCHjBg==
|
|
||||||
dependencies:
|
|
||||||
"@fortawesome/fontawesome-common-types" "^0.2.35"
|
|
||||||
|
|
||||||
"@fortawesome/free-brands-svg-icons@^5.15.1":
|
|
||||||
version "5.15.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-5.15.1.tgz#1dc0563f4036639e53d24b8e532ea78a53ca2250"
|
|
||||||
integrity sha512-pkTZIWn7iuliCCgV+huDfZmZb2UjslalXGDA2PcqOVUYJmYL11y6ooFiMJkJvUZu+xgAc1gZgQe+Px12mZF0CA==
|
|
||||||
dependencies:
|
|
||||||
"@fortawesome/fontawesome-common-types" "^0.2.32"
|
|
||||||
|
|
||||||
"@fortawesome/free-solid-svg-icons@^5.15.1":
|
|
||||||
version "5.15.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.1.tgz#e1432676ddd43108b41197fee9f86d910ad458ef"
|
|
||||||
integrity sha512-EFMuKtzRMNbvjab/SvJBaOOpaqJfdSap/Nl6hst7CgrJxwfORR1drdTV6q1Ib/JVzq4xObdTDcT6sqTaXMqfdg==
|
|
||||||
dependencies:
|
|
||||||
"@fortawesome/fontawesome-common-types" "^0.2.32"
|
|
||||||
|
|
||||||
"@fortawesome/react-fontawesome@^0.1.14":
|
|
||||||
version "0.1.14"
|
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.14.tgz#bf28875c3935b69ce2dc620e1060b217a47f64ca"
|
|
||||||
integrity sha512-4wqNb0gRLVaBm/h+lGe8UfPPivcbuJ6ecI4hIgW0LjI7kzpYB9FkN0L9apbVzg+lsBdcTf0AlBtODjcSX5mmKA==
|
|
||||||
dependencies:
|
|
||||||
prop-types "^15.7.2"
|
|
||||||
|
|
||||||
"@hapi/[email protected]":
|
"@hapi/[email protected]":
|
||||||
version "2.1.4"
|
version "2.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5"
|
resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5"
|
||||||
|
|||||||
Reference in new issue
Block a user