diff --git a/phone/package.json b/phone/package.json index 230a7c2..5487023 100644 --- a/phone/package.json +++ b/phone/package.json @@ -6,10 +6,6 @@ "license": "CC-BY-NC-SA-4.0", "homepage": "/resources/html", "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/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.56", diff --git a/phone/src/apps/bank/components/navigation/NavigationBar.tsx b/phone/src/apps/bank/components/navigation/NavigationBar.tsx index 971367d..a28e17c 100644 --- a/phone/src/apps/bank/components/navigation/NavigationBar.tsx +++ b/phone/src/apps/bank/components/navigation/NavigationBar.tsx @@ -3,8 +3,7 @@ import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { BottomNavigation, BottomNavigationAction } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faHome, faList, faMoneyCheck } from '@fortawesome/free-solid-svg-icons'; +import { Home, List, Payment } from '@material-ui/icons'; const useStyles = makeStyles((theme) => ({ root: { @@ -30,21 +29,9 @@ export const NavigationBar = () => { showLabels className={classes.root} > - } - to="/bank" - /> - } - to="/bank/account" - /> - } - to="/bank/transactions" - /> + } to="/bank" /> + } to="/bank/account" /> + } to="/bank/transactions" /> ); }; diff --git a/phone/src/apps/marketplace/components/MarketplaceApp.tsx b/phone/src/apps/marketplace/components/MarketplaceApp.tsx index 536e2a1..cff692e 100644 --- a/phone/src/apps/marketplace/components/MarketplaceApp.tsx +++ b/phone/src/apps/marketplace/components/MarketplaceApp.tsx @@ -1,7 +1,6 @@ import React from 'react'; -import { AppWrapper } from '../../../ui/components/AppWrapper'; +import { AppWrapper } from '../../../ui/components'; import { AppContent } from '../../../ui/components/AppContent'; -import { MarketplaceTitle } from './MarketplaceTitle'; import { MarketplaceListContainer } from './SelloutList/MarketplaceListContainer'; import { NavigationBar } from './navigation/NavigationBar'; import { Switch, Route } from 'react-router-dom'; @@ -9,12 +8,16 @@ import { ListingFormContainer } from './form/ListingFormContainer'; import InjectDebugData from '../../../os/debug/InjectDebugData'; import { MarketplaceThemeProvider } from '../providers/MarketplaceThemeProvider'; import { MarketplaceEvents } from '../../../../../typings/marketplace'; +import { AppTitle } from '../../../ui/components/AppTitle'; +import { useApp } from '../../../os/apps/hooks/useApps'; export const MarketplaceApp = () => { + const marketplaceApp = useApp('SELLOUT'); + return ( - + diff --git a/phone/src/apps/marketplace/components/MarketplaceTitle.tsx b/phone/src/apps/marketplace/components/MarketplaceTitle.tsx deleted file mode 100644 index 9640a9b..0000000 --- a/phone/src/apps/marketplace/components/MarketplaceTitle.tsx +++ /dev/null @@ -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 ( - - - - ); -}; diff --git a/phone/src/apps/marketplace/components/navigation/NavigationBar.tsx b/phone/src/apps/marketplace/components/navigation/NavigationBar.tsx index 686b886..37280bf 100644 --- a/phone/src/apps/marketplace/components/navigation/NavigationBar.tsx +++ b/phone/src/apps/marketplace/components/navigation/NavigationBar.tsx @@ -2,9 +2,7 @@ import React, { useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Link } from 'react-router-dom'; import { BottomNavigation, BottomNavigationAction } from '@material-ui/core'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faHome } from '@fortawesome/free-solid-svg-icons'; -import AddCircleIcon from '@material-ui/icons/AddCircle'; +import { AddCircle, Home } from '@material-ui/icons/'; const useStyles = makeStyles((theme) => ({ root: { @@ -28,12 +26,8 @@ export const NavigationBar = () => { showLabels className={classes.root} > - } - to="/marketplace" - /> - } to="/marketplace/new" /> + } to="/marketplace" /> + } to="/marketplace/new" /> ); }; diff --git a/phone/src/apps/notes/NotesTitle.tsx b/phone/src/apps/notes/NotesTitle.tsx deleted file mode 100644 index 9f020a6..0000000 --- a/phone/src/apps/notes/NotesTitle.tsx +++ /dev/null @@ -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 ( - - - - ); -}; - -export default NotesTitle; diff --git a/phone/src/apps/twitter/components/buttons/RetweetButton.tsx b/phone/src/apps/twitter/components/buttons/RetweetButton.tsx index 4fe98d1..3b331b4 100644 --- a/phone/src/apps/twitter/components/buttons/RetweetButton.tsx +++ b/phone/src/apps/twitter/components/buttons/RetweetButton.tsx @@ -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 ( ); }; diff --git a/phone/src/apps/twitter/components/tweet/Retweet.tsx b/phone/src/apps/twitter/components/tweet/Retweet.tsx index 18f7e0d..add068c 100644 --- a/phone/src/apps/twitter/components/tweet/Retweet.tsx +++ b/phone/src/apps/twitter/components/tweet/Retweet.tsx @@ -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 (
- {profileName} {t('APPS_TWITTER_RETWEETED')} + {profileName} {t('APPS_TWITTER_RETWEETED')}
); } diff --git a/phone/src/locale/en.json b/phone/src/locale/en.json index b3a9418..01ca1e5 100644 --- a/phone/src/locale/en.json +++ b/phone/src/locale/en.json @@ -59,7 +59,7 @@ "APPS_NOTES": "Notes", "APPS_EXAMPLE": "Example app", "APPS_TWITTER": "Twitter", - "APPS_SELLOUT": "Market", + "APPS_SELLOUT": "Marketplace", "APPS_CAMERA": "Camera", "APPS_CAMERA_FAILED_TO_TAKE_PHOTO": "Photo could not be saved :(", diff --git a/phone/yarn.lock b/phone/yarn.lock index ba3d6c3..a2df0c3 100644 --- a/phone/yarn.lock +++ b/phone/yarn.lock @@ -1233,44 +1233,6 @@ minimatch "^3.0.4" 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/address@2.x.x": version "2.1.4" resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5"