From 0e43851d810e2c7c334f2c89311c65560a196fba Mon Sep 17 00:00:00 2001 From: J Francisco Rader Date: Fri, 19 Feb 2021 10:51:54 -0500 Subject: [PATCH] I make phone break --- .../src/apps/contacts/components/styled/ContactsButton.tsx | 7 +++++++ .../apps/contacts/components/styled/ContactsTextField.tsx | 7 +++++++ phone/src/apps/contacts/components/views/ContactsPage.tsx | 2 +- phone/src/apps/contacts/constants.ts | 4 ++++ phone/src/apps/dialer/components/DialerApp.tsx | 2 +- 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 phone/src/apps/contacts/components/styled/ContactsButton.tsx create mode 100644 phone/src/apps/contacts/components/styled/ContactsTextField.tsx create mode 100644 phone/src/apps/contacts/constants.ts diff --git a/phone/src/apps/contacts/components/styled/ContactsButton.tsx b/phone/src/apps/contacts/components/styled/ContactsButton.tsx new file mode 100644 index 0000000..f8e5b2f --- /dev/null +++ b/phone/src/apps/contacts/components/styled/ContactsButton.tsx @@ -0,0 +1,7 @@ +import { Button, withStyles } from '@material-ui/core'; +import { ButtonStyles } from '../../../../ui/helpers/customStyles'; +import { CONTACTS_APP_BG_COLOR, CONTACTS_APP_COLOR } from '../../constants'; + +export const ContactsButton = withStyles( + ButtonStyles(CONTACTS_APP_COLOR, CONTACTS_APP_BG_COLOR) +)(Button); diff --git a/phone/src/apps/contacts/components/styled/ContactsTextField.tsx b/phone/src/apps/contacts/components/styled/ContactsTextField.tsx new file mode 100644 index 0000000..8f2dd76 --- /dev/null +++ b/phone/src/apps/contacts/components/styled/ContactsTextField.tsx @@ -0,0 +1,7 @@ +import { TextField, withStyles } from '@material-ui/core'; +import { TextFieldStyles } from '../../../../ui/helpers/customStyles'; +import { CONTACTS_APP_BG_COLOR } from '../../constants'; + +export const ContactsTextField = withStyles( + TextFieldStyles(CONTACTS_APP_BG_COLOR) +)(TextField); diff --git a/phone/src/apps/contacts/components/views/ContactsPage.tsx b/phone/src/apps/contacts/components/views/ContactsPage.tsx index b43359d..49d1aac 100644 --- a/phone/src/apps/contacts/components/views/ContactsPage.tsx +++ b/phone/src/apps/contacts/components/views/ContactsPage.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import { ContactList } from '../List/ContactList'; import Fab from '@material-ui/core/Fab'; import PersonAddIcon from '@material-ui/icons/PersonAdd'; import { useHistory } from 'react-router-dom'; import { makeStyles, Theme } from '@material-ui/core/styles'; +import { ContactList } from '../list/ContactList'; const useStyles = makeStyles((theme: Theme) => ({ absolute: { diff --git a/phone/src/apps/contacts/constants.ts b/phone/src/apps/contacts/constants.ts new file mode 100644 index 0000000..0285618 --- /dev/null +++ b/phone/src/apps/contacts/constants.ts @@ -0,0 +1,4 @@ +import { blue, common } from '@material-ui/core/colors'; + +export const CONTACTS_APP_BG_COLOR = blue[500]; +export const CONTACTS_APP_COLOR = common.white; diff --git a/phone/src/apps/dialer/components/DialerApp.tsx b/phone/src/apps/dialer/components/DialerApp.tsx index 7be6360..2bc7ce5 100644 --- a/phone/src/apps/dialer/components/DialerApp.tsx +++ b/phone/src/apps/dialer/components/DialerApp.tsx @@ -9,7 +9,7 @@ import DialPage from './views/DialPage'; import DialerNavBar from './DialerNavBar'; import { useDialHistory } from '../hooks/useDialHistory'; import InjectDebugData from '../../../os/debug/InjectDebugData'; -import { ContactList } from '../../contacts/components/List/ContactList'; +import { ContactList } from '../../contacts/components/list/ContactList'; InjectDebugData([ {