mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-06-14 04:11:21 +00:00
block user changes
This commit is contained in:
parent
7a7013de59
commit
bd41d0fddc
@ -6,12 +6,15 @@ import {
|
|||||||
DialogContent,
|
DialogContent,
|
||||||
DialogContentText,
|
DialogContentText,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
|
IconButton,
|
||||||
TextField,
|
TextField,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import React, { useContext, useEffect, useState } from "react";
|
import React, { useContext, useEffect, useState } from "react";
|
||||||
import { getBaseApiReact, MyContext } from "../../App";
|
import { getBaseApiReact, MyContext } from "../../App";
|
||||||
import { Spacer } from "../../common/Spacer";
|
import { Spacer } from "../../common/Spacer";
|
||||||
|
import CloseIcon from '@mui/icons-material/Close';
|
||||||
|
|
||||||
import { executeEvent, subscribeToEvent, unsubscribeFromEvent } from "../../utils/events";
|
import { executeEvent, subscribeToEvent, unsubscribeFromEvent } from "../../utils/events";
|
||||||
import { validateAddress } from "../../utils/validateAddress";
|
import { validateAddress } from "../../utils/validateAddress";
|
||||||
import { getNameInfo, requestQueueMemberNames } from "./Group";
|
import { getNameInfo, requestQueueMemberNames } from "./Group";
|
||||||
@ -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}
|
||||||
|
@ -1936,6 +1936,7 @@ export const Group = ({
|
|||||||
width: "100%",
|
width: "100%",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
padding: "10px",
|
padding: "10px",
|
||||||
|
gap: '10px'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CustomButton
|
<CustomButton
|
||||||
@ -1953,6 +1954,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