diff --git a/src/common/BoundedNumericTextField.tsx b/src/common/BoundedNumericTextField.tsx index fa0d4b1..f64c8ad 100644 --- a/src/common/BoundedNumericTextField.tsx +++ b/src/common/BoundedNumericTextField.tsx @@ -1,4 +1,9 @@ -import { IconButton, InputAdornment, TextFieldProps } from '@mui/material'; +import { + IconButton, + InputAdornment, + TextFieldProps, + useTheme, +} from '@mui/material'; import React, { useRef, useState } from 'react'; import AddIcon from '@mui/icons-material/Add'; import RemoveIcon from '@mui/icons-material/Remove'; @@ -39,7 +44,7 @@ export const BoundedNumericTextField = ({ const stringIsEmpty = (value: string) => { return value === ''; }; - + const theme = useTheme(); const isAllZerosNum = /^0*\.?0*$/; const isFloatNum = /^-?[0-9]*\.?[0-9]*$/; const isIntegerNum = /^-?[0-9]+$/; @@ -133,7 +138,7 @@ export const BoundedNumericTextField = ({ > {' '} @@ -143,7 +148,7 @@ export const BoundedNumericTextField = ({ > {' '} diff --git a/src/components/Apps/AppsDevModeNavBar.tsx b/src/components/Apps/AppsDevModeNavBar.tsx index a677d67..bcc8811 100644 --- a/src/components/Apps/AppsDevModeNavBar.tsx +++ b/src/components/Apps/AppsDevModeNavBar.tsx @@ -6,7 +6,7 @@ import { } from './Apps-styles'; import { NavBack } from '../../assets/Icons/NavBack.tsx'; import { NavAdd } from '../../assets/Icons/NavAdd.tsx'; -import { ButtonBase, Tab, Tabs } from '@mui/material'; +import { ButtonBase, Tab, Tabs, useTheme } from '@mui/material'; import { executeEvent, subscribeToEvent, @@ -23,7 +23,7 @@ export const AppsDevModeNavBar = () => { const [navigationController, setNavigationController] = useRecoilState( navigationControllerAtom ); - + const theme = useTheme(); const [isNewTabWindow, setIsNewTabWindow] = useState(false); const tabsRef = useRef(null); const [anchorEl, setAnchorEl] = useState(null); @@ -114,7 +114,7 @@ export const AppsDevModeNavBar = () => { scrollButtons={true} sx={{ '& .MuiTabs-indicator': { - backgroundColor: 'white', + backgroundColor: theme.palette.text.primary, }, maxHeight: `275px`, // Ensure the tabs container fits within the available space overflow: 'hidden', // Prevents overflow on small screens @@ -133,7 +133,7 @@ export const AppsDevModeNavBar = () => { } // Pass custom component sx={{ '&.Mui-selected': { - color: 'white', + color: theme.palette.text.primary, }, padding: '0px', margin: '0px', diff --git a/src/components/Apps/AppsHomeDesktop.tsx b/src/components/Apps/AppsHomeDesktop.tsx index c77865c..8a96015 100644 --- a/src/components/Apps/AppsHomeDesktop.tsx +++ b/src/components/Apps/AppsHomeDesktop.tsx @@ -69,10 +69,7 @@ export const AppsHomeDesktop = ({ display: 'flex', gap: '20px', alignItems: 'center', - backgroundColor: - theme.palette.mode === 'dark' - ? 'rgba(41, 41, 43, 1)' - : 'rgb(209, 209, 209)', + backgroundColor: theme.palette.background.paper, padding: '7px', borderRadius: '20px', width: '100%', @@ -91,9 +88,9 @@ export const AppsHomeDesktop = ({ placeholder="qortal://" sx={{ width: '100%', - color: theme.palette.mode === 'dark' ? 'white' : 'black', + color: theme.palette.text.primary, '& .MuiInput-input::placeholder': { - color: 'rgba(84, 84, 84, 0.70) !important', + color: theme.palette.text.secondary, fontSize: '20px', fontStyle: 'normal', fontWeight: 400, @@ -115,7 +112,9 @@ export const AppsHomeDesktop = ({ openQortalUrl()}> diff --git a/src/components/GeneralNotifications.tsx b/src/components/GeneralNotifications.tsx index 25fbb6b..3e9cd02 100644 --- a/src/components/GeneralNotifications.tsx +++ b/src/components/GeneralNotifications.tsx @@ -149,7 +149,7 @@ export const GeneralNotifications = ({ address }) => { > {' '} {formatDate(latestTx?.timestamp)} diff --git a/src/components/Group/Forum/ShowMessageWithoutModal.tsx b/src/components/Group/Forum/ShowMessageWithoutModal.tsx index 57d920d..914b9c5 100644 --- a/src/components/Group/Forum/ShowMessageWithoutModal.tsx +++ b/src/components/Group/Forum/ShowMessageWithoutModal.tsx @@ -20,7 +20,7 @@ import { WrapperUserAction } from '../../WrapperUserAction'; export const ShowMessage = ({ message, openNewPostWithQuote, myName }: any) => { const [expandAttachments, setExpandAttachments] = useState(false); - console.log('message', message); + let cleanHTML = ''; if (message?.htmlContent) { cleanHTML = DOMPurify.sanitize(message.htmlContent); diff --git a/src/components/Group/Group.tsx b/src/components/Group/Group.tsx index fdd57e0..4e04b02 100644 --- a/src/components/Group/Group.tsx +++ b/src/components/Group/Group.tsx @@ -1780,7 +1780,7 @@ export const Group = ({ ); }; - console.log('groupsProperties', groupsProperties); + const renderGroups = () => { return (
{ @@ -354,7 +355,7 @@ const ListOfMembers = ({ {member?.isAdmin && ( diff --git a/src/components/Group/Settings.tsx b/src/components/Group/Settings.tsx index a839bfd..77032f7 100644 --- a/src/components/Group/Settings.tsx +++ b/src/components/Group/Settings.tsx @@ -131,9 +131,7 @@ export const Settings = ({ address, open, setOpen }) => { onClose={handleClose} TransitionComponent={Transition} > - + General Settings @@ -152,7 +150,6 @@ export const Settings = ({ address, open, setOpen }) => { { /> {window?.electronAPI && ( @@ -248,7 +248,7 @@ export const RegisterName = ({ > {registerNameValue} is available @@ -264,7 +264,7 @@ export const RegisterName = ({ > {registerNameValue} is unavailable @@ -298,7 +298,7 @@ export const RegisterName = ({ @@ -308,7 +308,7 @@ export const RegisterName = ({