mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-06-14 03:51:23 +00:00
block user changes
This commit is contained in:
parent
54a1bb636a
commit
2fbc48d676
@ -6,6 +6,7 @@ import {
|
|||||||
DialogContent,
|
DialogContent,
|
||||||
DialogContentText,
|
DialogContentText,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
|
IconButton,
|
||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
@ -18,6 +19,8 @@ import { getNameInfo, requestQueueMemberNames } from "./Group";
|
|||||||
import { useModal } from "../../common/useModal";
|
import { useModal } from "../../common/useModal";
|
||||||
import { useRecoilState } from "recoil";
|
import { useRecoilState } from "recoil";
|
||||||
import { isOpenBlockedModalAtom } from "../../atoms/global";
|
import { isOpenBlockedModalAtom } from "../../atoms/global";
|
||||||
|
import CloseIcon from '@mui/icons-material/Close';
|
||||||
|
|
||||||
import InfoIcon from '@mui/icons-material/Info';
|
import InfoIcon from '@mui/icons-material/Info';
|
||||||
export const BlockedUsersModal = () => {
|
export const BlockedUsersModal = () => {
|
||||||
const [isOpenBlockedModal, setIsOpenBlockedModal] = useRecoilState(isOpenBlockedModalAtom)
|
const [isOpenBlockedModal, setIsOpenBlockedModal] = useRecoilState(isOpenBlockedModalAtom)
|
||||||
@ -314,6 +317,17 @@ export const BlockedUsersModal = () => {
|
|||||||
<DialogTitle id="alert-dialog-title">
|
<DialogTitle id="alert-dialog-title">
|
||||||
{"Decide what to block"}
|
{"Decide what to block"}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
<IconButton
|
||||||
|
onClick={onCancel}
|
||||||
|
sx={{
|
||||||
|
position: 'absolute',
|
||||||
|
right: 8,
|
||||||
|
top: 8,
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CloseIcon />
|
||||||
|
</IconButton>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText id="alert-dialog-description">
|
<DialogContentText id="alert-dialog-description">
|
||||||
Blocking {message?.userName || message?.userAddress}
|
Blocking {message?.userName || message?.userAddress}
|
||||||
|
@ -1908,6 +1908,7 @@ export const Group = ({
|
|||||||
width: "100%",
|
width: "100%",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
padding: "10px",
|
padding: "10px",
|
||||||
|
gap: '10px'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CustomButton
|
<CustomButton
|
||||||
@ -1925,6 +1926,23 @@ export const Group = ({
|
|||||||
/>
|
/>
|
||||||
New Chat
|
New Chat
|
||||||
</CustomButton>
|
</CustomButton>
|
||||||
|
{!isRunningPublicNode && (
|
||||||
|
<CustomButton
|
||||||
|
onClick={() => {
|
||||||
|
setIsOpenBlockedUserModal(true);
|
||||||
|
}}
|
||||||
|
sx={{
|
||||||
|
minWidth: 'unset',
|
||||||
|
padding: '10px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<PersonOffIcon
|
||||||
|
sx={{
|
||||||
|
color: 'white',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</CustomButton>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user