mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-06-05 16:06:59 +00:00
added lock icons for groups
This commit is contained in:
parent
c14431c63b
commit
b34f0af49a
@ -26,7 +26,9 @@ import _ from "lodash";
|
|||||||
import { MyContext, getBaseApiReact } from "../../App";
|
import { MyContext, getBaseApiReact } from "../../App";
|
||||||
import { LoadingButton } from "@mui/lab";
|
import { LoadingButton } from "@mui/lab";
|
||||||
import { getBaseApi, getFee } from "../../background";
|
import { getBaseApi, getFee } from "../../background";
|
||||||
|
import LockIcon from '@mui/icons-material/Lock';
|
||||||
|
import NoEncryptionGmailerrorredIcon from '@mui/icons-material/NoEncryptionGmailerrorred';
|
||||||
|
import { Spacer } from "../../common/Spacer";
|
||||||
const cache = new CellMeasurerCache({
|
const cache = new CellMeasurerCache({
|
||||||
fixedWidth: true,
|
fixedWidth: true,
|
||||||
defaultHeight: 50,
|
defaultHeight: 50,
|
||||||
@ -231,7 +233,17 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
|
|||||||
<ListItemButton
|
<ListItemButton
|
||||||
onClick={(event) => handlePopoverOpen(event, index)}
|
onClick={(event) => handlePopoverOpen(event, index)}
|
||||||
>
|
>
|
||||||
|
{group?.isOpen === false && (
|
||||||
|
<LockIcon sx={{
|
||||||
|
color: 'var(--green)'
|
||||||
|
}} />
|
||||||
|
)}
|
||||||
|
{group?.isOpen === true && (
|
||||||
|
<NoEncryptionGmailerrorredIcon sx={{
|
||||||
|
color: 'var(--unread)'
|
||||||
|
}} />
|
||||||
|
)}
|
||||||
|
<Spacer width="15px" />
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary={group?.groupName}
|
primary={group?.groupName}
|
||||||
secondary={group?.description}
|
secondary={group?.description}
|
||||||
|
@ -49,7 +49,8 @@ import ShortUniqueId from "short-unique-id";
|
|||||||
import { CustomizedSnackbars } from "../Snackbar/Snackbar";
|
import { CustomizedSnackbars } from "../Snackbar/Snackbar";
|
||||||
import { getGroupNames } from "./UserListOfInvites";
|
import { getGroupNames } from "./UserListOfInvites";
|
||||||
import { WrapperUserAction } from "../WrapperUserAction";
|
import { WrapperUserAction } from "../WrapperUserAction";
|
||||||
|
import LockIcon from '@mui/icons-material/Lock';
|
||||||
|
import NoEncryptionGmailerrorredIcon from '@mui/icons-material/NoEncryptionGmailerrorred';
|
||||||
export const requestQueuePromos = new RequestQueueWithPromise(20);
|
export const requestQueuePromos = new RequestQueueWithPromise(20);
|
||||||
|
|
||||||
export function utf8ToBase64(inputString: string): string {
|
export function utf8ToBase64(inputString: string): string {
|
||||||
@ -530,7 +531,10 @@ export const ListOfGroupPromotions = () => {
|
|||||||
{promotion?.name}
|
{promotion?.name}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Typography
|
|
||||||
|
</Box>
|
||||||
|
<Spacer height="20px"/>
|
||||||
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
fontWight: 600,
|
fontWight: 600,
|
||||||
fontFamily: "Inter",
|
fontFamily: "Inter",
|
||||||
@ -539,7 +543,31 @@ export const ListOfGroupPromotions = () => {
|
|||||||
>
|
>
|
||||||
{promotion?.groupName}
|
{promotion?.groupName}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
<Spacer height="20px" />
|
||||||
|
<Box sx={{
|
||||||
|
display: 'flex',
|
||||||
|
gap: '20px',
|
||||||
|
alignItems: 'center'
|
||||||
|
}}>
|
||||||
|
{promotion?.isOpen === false && (
|
||||||
|
<LockIcon sx={{
|
||||||
|
color: 'var(--green)'
|
||||||
|
}} />
|
||||||
|
)}
|
||||||
|
{promotion?.isOpen === true && (
|
||||||
|
<NoEncryptionGmailerrorredIcon sx={{
|
||||||
|
color: 'var(--unread)'
|
||||||
|
}} />
|
||||||
|
)}
|
||||||
|
<Typography
|
||||||
|
sx={{
|
||||||
|
fontSize: "15px",
|
||||||
|
fontWeight: 600,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{promotion?.isOpen ? 'Public group' : 'Private group' }
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
<Spacer height="20px" />
|
<Spacer height="20px" />
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -4,7 +4,9 @@ import { AutoSizer, CellMeasurer, CellMeasurerCache, List } from 'react-virtuali
|
|||||||
import { MyContext, getBaseApiReact } from '../../App';
|
import { MyContext, getBaseApiReact } from '../../App';
|
||||||
import { LoadingButton } from '@mui/lab';
|
import { LoadingButton } from '@mui/lab';
|
||||||
import { getBaseApi, getFee } from '../../background';
|
import { getBaseApi, getFee } from '../../background';
|
||||||
|
import LockIcon from '@mui/icons-material/Lock';
|
||||||
|
import NoEncryptionGmailerrorredIcon from '@mui/icons-material/NoEncryptionGmailerrorred';
|
||||||
|
import { Spacer } from "../../common/Spacer";
|
||||||
|
|
||||||
const cache = new CellMeasurerCache({
|
const cache = new CellMeasurerCache({
|
||||||
fixedWidth: true,
|
fixedWidth: true,
|
||||||
@ -183,7 +185,17 @@ export const UserListOfInvites = ({myAddress, setInfoSnack, setOpenSnack}) => {
|
|||||||
</Box>
|
</Box>
|
||||||
</Popover>
|
</Popover>
|
||||||
<ListItemButton onClick={(event) => handlePopoverOpen(event, index)}>
|
<ListItemButton onClick={(event) => handlePopoverOpen(event, index)}>
|
||||||
|
{invite?.isOpen === false && (
|
||||||
|
<LockIcon sx={{
|
||||||
|
color: 'var(--green)'
|
||||||
|
}} />
|
||||||
|
)}
|
||||||
|
{invite?.isOpen === true && (
|
||||||
|
<NoEncryptionGmailerrorredIcon sx={{
|
||||||
|
color: 'var(--unread)'
|
||||||
|
}} />
|
||||||
|
)}
|
||||||
|
<Spacer width="15px" />
|
||||||
<ListItemText primary={invite?.groupName} secondary={invite?.description} />
|
<ListItemText primary={invite?.groupName} secondary={invite?.description} />
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user