mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-11 02:36:59 +00:00
Add theme
This commit is contained in:
parent
c5abf72e88
commit
bb79a043e8
@ -20,6 +20,7 @@ import {
|
|||||||
Tab,
|
Tab,
|
||||||
Tabs,
|
Tabs,
|
||||||
styled,
|
styled,
|
||||||
|
useTheme,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { AddGroupList } from './AddGroupList';
|
import { AddGroupList } from './AddGroupList';
|
||||||
import { UserListOfInvites } from './UserListOfInvites';
|
import { UserListOfInvites } from './UserListOfInvites';
|
||||||
@ -84,6 +85,8 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
setMaxBlock(event.target.value as string);
|
setMaxBlock(event.target.value as string);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
const handleCreateGroup = async () => {
|
const handleCreateGroup = async () => {
|
||||||
try {
|
try {
|
||||||
if (!name) throw new Error('Please provide a name');
|
if (!name) throw new Error('Please provide a name');
|
||||||
@ -187,17 +190,22 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
TransitionComponent={Transition}
|
TransitionComponent={Transition}
|
||||||
>
|
>
|
||||||
<AppBar sx={{ position: 'relative', bgcolor: '#232428' }}>
|
<AppBar
|
||||||
|
sx={{
|
||||||
|
position: 'relative',
|
||||||
|
bgcolor: theme.palette.background.default,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Toolbar>
|
<Toolbar>
|
||||||
<Typography sx={{ ml: 2, flex: 1 }} variant="h6" component="div">
|
<Typography sx={{ ml: 2, flex: 1 }} variant="h6" component="div">
|
||||||
Group Mgmt
|
Group Mgmt
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<IconButton
|
<IconButton
|
||||||
edge="start"
|
|
||||||
color="inherit"
|
|
||||||
onClick={handleClose}
|
|
||||||
aria-label="close"
|
aria-label="close"
|
||||||
|
color="inherit"
|
||||||
|
edge="start"
|
||||||
|
onClick={handleClose}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@ -209,15 +217,17 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
</AppBar>
|
</AppBar>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
bgcolor: '#27282c',
|
bgcolor: theme.palette.background.default,
|
||||||
|
color: theme.palette.text.primary,
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
color: 'white',
|
|
||||||
flexDirection: 'column',
|
|
||||||
display: 'flex',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
|
<Box
|
||||||
|
sx={{ borderBottom: 1, borderColor: theme.palette.text.secondary }}
|
||||||
|
>
|
||||||
<Tabs
|
<Tabs
|
||||||
value={value}
|
value={value}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
@ -227,7 +237,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
allowScrollButtonsMobile
|
allowScrollButtonsMobile
|
||||||
sx={{
|
sx={{
|
||||||
'& .MuiTabs-indicator': {
|
'& .MuiTabs-indicator': {
|
||||||
backgroundColor: 'white',
|
backgroundColor: theme.palette.background.default,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -236,7 +246,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
{...a11yProps(0)}
|
{...a11yProps(0)}
|
||||||
sx={{
|
sx={{
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
color: 'white',
|
color: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
fontSize: isMobile ? '0.75rem' : '1rem', // Adjust font size for mobile
|
fontSize: isMobile ? '0.75rem' : '1rem', // Adjust font size for mobile
|
||||||
}}
|
}}
|
||||||
@ -246,7 +256,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
{...a11yProps(1)}
|
{...a11yProps(1)}
|
||||||
sx={{
|
sx={{
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
color: 'white',
|
color: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
fontSize: isMobile ? '0.75rem' : '1rem', // Adjust font size for mobile
|
fontSize: isMobile ? '0.75rem' : '1rem', // Adjust font size for mobile
|
||||||
}}
|
}}
|
||||||
@ -256,7 +266,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
{...a11yProps(2)}
|
{...a11yProps(2)}
|
||||||
sx={{
|
sx={{
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
color: 'white',
|
color: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
fontSize: isMobile ? '0.75rem' : '1rem', // Adjust font size for mobile
|
fontSize: isMobile ? '0.75rem' : '1rem', // Adjust font size for mobile
|
||||||
}}
|
}}
|
||||||
@ -454,11 +464,11 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
{value === 1 && (
|
{value === 1 && (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
display: 'flex',
|
||||||
padding: '25px',
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
display: 'flex',
|
padding: '25px',
|
||||||
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<AddGroupList
|
<AddGroupList
|
||||||
@ -471,11 +481,11 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
{value === 2 && (
|
{value === 2 && (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
display: 'flex',
|
||||||
padding: '25px',
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
display: 'flex',
|
padding: '25px',
|
||||||
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<UserListOfInvites
|
<UserListOfInvites
|
||||||
@ -486,6 +496,7 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<CustomizedSnackbars
|
<CustomizedSnackbars
|
||||||
open={openSnack}
|
open={openSnack}
|
||||||
setOpen={setOpenSnack}
|
setOpen={setOpenSnack}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user