mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-15 04:21:21 +00:00
Add sx to IconButton
This commit is contained in:
parent
1abda4a278
commit
1d50a96d25
@ -135,6 +135,10 @@ export const BoundedNumericTextField = ({
|
|||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
onClick={() => changeValueWithIncDecButton(1)}
|
onClick={() => changeValueWithIncDecButton(1)}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<AddIcon
|
<AddIcon
|
||||||
sx={{
|
sx={{
|
||||||
@ -145,6 +149,10 @@ export const BoundedNumericTextField = ({
|
|||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
onClick={() => changeValueWithIncDecButton(-1)}
|
onClick={() => changeValueWithIncDecButton(-1)}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<RemoveIcon
|
<RemoveIcon
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -269,11 +269,12 @@ export function ImageViewer({ src = null, alt = '' }) {
|
|||||||
<IconButton
|
<IconButton
|
||||||
onClick={handleCloseFullscreen}
|
onClick={handleCloseFullscreen}
|
||||||
sx={{
|
sx={{
|
||||||
position: 'absolute',
|
bgcolor: theme.palette.background.default,
|
||||||
top: 8,
|
|
||||||
right: 8,
|
|
||||||
zIndex: 10,
|
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
|
position: 'absolute',
|
||||||
|
right: 8,
|
||||||
|
top: 8,
|
||||||
|
zIndex: 10,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
|
@ -252,6 +252,10 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
color="inherit"
|
color="inherit"
|
||||||
edge="start"
|
edge="start"
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
@ -406,10 +406,11 @@ export const BlockedUsersModal = () => {
|
|||||||
})}
|
})}
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
sx={{
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
right: 8,
|
right: 8,
|
||||||
top: 8,
|
top: 8,
|
||||||
color: theme.palette.text.primary,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
|
@ -173,6 +173,10 @@ export const GroupInvites = ({ myAddress, setOpenAddGroup }) => {
|
|||||||
aria-label={t('core:comment_other', {
|
aria-label={t('core:comment_other', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<GroupAddIcon
|
<GroupAddIcon
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -256,6 +256,10 @@ export const GroupJoinRequests = ({
|
|||||||
aria-label={t('core:comment_other', {
|
aria-label={t('core:comment_other', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<GroupAddIcon
|
<GroupAddIcon
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -5,7 +5,7 @@ import ListItemButton from '@mui/material/ListItemButton';
|
|||||||
import ListItemText from '@mui/material/ListItemText';
|
import ListItemText from '@mui/material/ListItemText';
|
||||||
import IconButton from '@mui/material/IconButton';
|
import IconButton from '@mui/material/IconButton';
|
||||||
import { executeEvent } from '../../utils/events';
|
import { executeEvent } from '../../utils/events';
|
||||||
import { Box, Typography } from '@mui/material';
|
import { Box, Typography, useTheme } from '@mui/material';
|
||||||
import { Spacer } from '../../common/Spacer';
|
import { Spacer } from '../../common/Spacer';
|
||||||
import { CustomLoader } from '../../common/CustomLoader';
|
import { CustomLoader } from '../../common/CustomLoader';
|
||||||
import VisibilityIcon from '@mui/icons-material/Visibility';
|
import VisibilityIcon from '@mui/icons-material/Visibility';
|
||||||
@ -14,6 +14,7 @@ import { useTranslation } from 'react-i18next';
|
|||||||
export const ListOfThreadPostsWatched = () => {
|
export const ListOfThreadPostsWatched = () => {
|
||||||
const [posts, setPosts] = useState([]);
|
const [posts, setPosts] = useState([]);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
|
const theme = useTheme();
|
||||||
const { t } = useTranslation([
|
const { t } = useTranslation([
|
||||||
'auth',
|
'auth',
|
||||||
'core',
|
'core',
|
||||||
@ -175,6 +176,10 @@ export const ListOfThreadPostsWatched = () => {
|
|||||||
aria-label={t('core:comment_other', {
|
aria-label={t('core:comment_other', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<VisibilityIcon
|
<VisibilityIcon
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -229,6 +229,10 @@ export const ManageMembers = ({
|
|||||||
color="inherit"
|
color="inherit"
|
||||||
edge="start"
|
edge="start"
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
@ -181,6 +181,10 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
|
|||||||
aria-label={t('core:action.close', {
|
aria-label={t('core:action.close', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
@ -565,6 +565,10 @@ export const Minting = ({ setIsOpenMinting, myAddress, show }) => {
|
|||||||
aria-label={t('core:action.close', {
|
aria-label={t('core:action.close', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
postProcess: 'capitalizeFirstChar',
|
||||||
})}
|
})}
|
||||||
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
@ -22,7 +22,8 @@ const ThemeSelector = () => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
onClick={toggleTheme}
|
onClick={toggleTheme}
|
||||||
sx={{
|
sx={{
|
||||||
color: theme.palette.text.secondary,
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{themeMode === 'dark' ? <LightModeIcon /> : <DarkModeIcon />}
|
{themeMode === 'dark' ? <LightModeIcon /> : <DarkModeIcon />}
|
||||||
|
@ -72,10 +72,11 @@ export const Tutorials = () => {
|
|||||||
})}
|
})}
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
sx={{
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
right: 8,
|
right: 8,
|
||||||
top: 8,
|
top: 8,
|
||||||
color: theme.palette.text.primary,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
@ -120,10 +121,11 @@ export const Tutorials = () => {
|
|||||||
})}
|
})}
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
sx={{
|
sx={{
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
right: 8,
|
right: 8,
|
||||||
top: 8,
|
top: 8,
|
||||||
color: theme.palette.text.primary,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
|
@ -562,6 +562,8 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
sx={{
|
sx={{
|
||||||
alignSelf: 'flex-start',
|
alignSelf: 'flex-start',
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
}}
|
}}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user