Adding new icons (#204)

* Adding new icons
This commit is contained in:
dayiskuan authored and GitHub committed 2021-04-10 14:49:15 -03:00
1 parent 404d526863
commit e1e6e8440d
35 files changed
+1089 -65

No files matched your search

+10 -43
View File
@@ -1,26 +1,9 @@
import React from 'react';
import { blue, common, grey, purple } from '@material-ui/core/colors';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faAd,
faPlaneArrival,
faPhoneAlt,
faWonSign,
faStickyNote,
} from '@fortawesome/free-solid-svg-icons';
import { faTwitter } from '@fortawesome/free-brands-svg-icons';
import ContactsIcon from '@material-ui/icons/Contacts';
import SettingsIcon from '@material-ui/icons/Settings';
import MessageIcon from '@material-ui/icons/Message';
import FireIcon from '@material-ui/icons/Whatshot';
import { CalculatorIcon } from '../../../apps/calculator/components/CalculatorIcon';
import CameraAltIcon from '@material-ui/icons/CameraAlt';
import { DialerApp } from '../../../apps/dialer/components/DialerApp';
import { ContactsApp } from '../../../apps/contacts/components/ContactsApp';
import { CalculatorApp } from '../../../apps/calculator/components/CalculatorApp';
import { SettingsApp } from '../../../apps/settings/components/SettingsApp';
import { BankApp } from '../../../apps/bank/components/BankApp';
import { MessagesApp } from '../../../apps/messages/components/MessagesApp';
import { MatchApp } from '../../../apps/match/components/MatchApp';
import { TwitterApp } from '../../../apps/twitter/components/TwitterApp';
@@ -49,24 +32,30 @@ import {
TWITTER_APP_TEXT_COLOR,
} from '../../../apps/twitter/twitter.theme';
import { MATCH_APP_PRIMARY_COLOR, MATCH_APP_TEXT_COLOR } from '../../../apps/match/match.theme';
import { SvgIconProps } from '@material-ui/core';
import { INotificationIcon } from '../../notifications/providers/NotificationsProvider';
export interface IAppConfig {
id: string;
nameLocale: string;
icon: JSX.Element;
notificationIcon: JSX.Element;
backgroundColor: string;
color: string;
path: string;
Route: React.FC;
}
export type IApp = IAppConfig & {
notification: INotificationIcon;
icon: JSX.Element;
notificationIcon: JSX.Element;
NotificationIcon: React.FC<SvgIconProps>;
Icon: React.FC<SvgIconProps>;
};
export const APPS: IAppConfig[] = [
{
id: 'DIALER',
nameLocale: 'APPS_DIALER',
icon: <FontAwesomeIcon icon={faPhoneAlt} />,
notificationIcon: <FontAwesomeIcon icon={faPhoneAlt} size="xs" />,
backgroundColor: DIALER_APP_PRIMARY_COLOR,
color: DIALER_APP_TEXT_COLOR,
path: '/phone',
@@ -75,8 +64,6 @@ export const APPS: IAppConfig[] = [
{
id: 'MESSAGES',
nameLocale: 'APPS_MESSAGES',
icon: <MessageIcon fontSize="large" />,
notificationIcon: <MessageIcon fontSize="small" />,
backgroundColor: MESSAGES_APP_PRIMARY_COLOR,
color: MESSAGES_APP_TEXT_COLOR,
path: '/messages',
@@ -85,8 +72,6 @@ export const APPS: IAppConfig[] = [
{
id: 'CONTACTS',
nameLocale: 'APPS_CONTACTS',
icon: <ContactsIcon fontSize="large" />,
notificationIcon: <ContactsIcon fontSize="small" />,
backgroundColor: CONTACTS_APP_PRIMARY_COLOR,
color: CONTACTS_APP_TEXT_COLOR,
path: '/contacts',
@@ -95,8 +80,6 @@ export const APPS: IAppConfig[] = [
{
id: 'CALCULATOR',
nameLocale: 'APPS_CALCULATOR',
icon: <CalculatorIcon fontSize="large" />,
notificationIcon: <CalculatorIcon fontSize="small" />,
backgroundColor: purple[500],
color: grey[50],
path: '/calculator',
@@ -105,8 +88,6 @@ export const APPS: IAppConfig[] = [
{
id: 'SETTINGS',
nameLocale: 'APPS_SETTINGS',
icon: <SettingsIcon fontSize="large" />,
notificationIcon: <SettingsIcon fontSize="small" />,
backgroundColor: '#383838',
color: grey[50],
path: '/settings',
@@ -116,8 +97,6 @@ export const APPS: IAppConfig[] = [
/*{
id: 'BANK',
nameLocale: 'APPS_BANK',
icon: <FontAwesomeIcon icon={faWonSign} />,
notificationIcon: <FontAwesomeIcon icon={faWonSign} size="xs" />,
backgroundColor: blue[900],
color: common.white,
path: '/bank',
@@ -126,8 +105,6 @@ export const APPS: IAppConfig[] = [
{
id: 'MATCH',
nameLocale: 'APPS_MATCH',
icon: <FireIcon fontSize="large" />,
notificationIcon: <FireIcon fontSize="small" />,
backgroundColor: MATCH_APP_PRIMARY_COLOR,
color: MATCH_APP_TEXT_COLOR,
path: '/match',
@@ -136,8 +113,6 @@ export const APPS: IAppConfig[] = [
{
id: 'TWITTER',
nameLocale: 'APPS_TWITTER',
icon: <FontAwesomeIcon icon={faTwitter} fixedWidth />,
notificationIcon: <FontAwesomeIcon icon={faTwitter} fixedWidth size="xs" />,
backgroundColor: TWITTER_APP_PRIMARY_COLOR,
color: TWITTER_APP_TEXT_COLOR,
path: '/twitter',
@@ -146,8 +121,6 @@ export const APPS: IAppConfig[] = [
{
id: 'SELLOUT',
nameLocale: 'APPS_SELLOUT',
icon: <FontAwesomeIcon icon={faAd} fixedWidth />,
notificationIcon: <FontAwesomeIcon icon={faAd} fixedWidth size="xs" />,
backgroundColor: SELLOUT_APP_PRIMARY_COLOR,
color: SELLOUT_APP_ICON_COLOR,
path: '/marketplace',
@@ -156,8 +129,6 @@ export const APPS: IAppConfig[] = [
{
id: 'NOTES',
nameLocale: 'APPS_NOTES',
icon: <FontAwesomeIcon icon={faStickyNote} fixedWidth />,
notificationIcon: <FontAwesomeIcon icon={faStickyNote} fixedWidth size="xs" />,
backgroundColor: NOTES_APP_PRIMARY_COLOR,
color: NOTES_APP_ICON_COLOR,
path: '/notes',
@@ -166,8 +137,6 @@ export const APPS: IAppConfig[] = [
{
id: 'CAMERA',
nameLocale: 'APPS_CAMERA',
icon: <CameraAltIcon fontSize="large" />,
notificationIcon: <CameraAltIcon fontSize="small" />,
backgroundColor: grey['A400'],
color: common.white,
path: '/camera',
@@ -180,8 +149,6 @@ if (process.env.NODE_ENV === 'development') {
APPS.push({
id: 'EXAMPLE',
nameLocale: 'APPS_EXAMPLE',
icon: <FontAwesomeIcon icon={faPlaneArrival} size="sm" />,
notificationIcon: <FontAwesomeIcon icon={faPlaneArrival} size="xs" />,
backgroundColor: blue[500],
color: blue[50],
path: '/example',