mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-23 04:36:52 +00:00
add hide to seedphrase
This commit is contained in:
@@ -36,12 +36,10 @@ const officialAppList = [
|
||||
"q-share",
|
||||
"q-support",
|
||||
"q-mail",
|
||||
"qombo",
|
||||
"q-fund",
|
||||
"q-shop",
|
||||
"q-trade",
|
||||
"q-support",
|
||||
"nodeinfo",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
|
@@ -44,12 +44,10 @@ const officialAppList = [
|
||||
"q-share",
|
||||
"q-support",
|
||||
"q-mail",
|
||||
"qombo",
|
||||
"q-fund",
|
||||
"q-shop",
|
||||
"q-trade",
|
||||
"q-support",
|
||||
"nodeinfo",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
|
@@ -38,12 +38,10 @@ const officialAppList = [
|
||||
"q-share",
|
||||
"q-support",
|
||||
"q-mail",
|
||||
"qombo",
|
||||
"q-fund",
|
||||
"q-shop",
|
||||
"q-trade",
|
||||
"q-support",
|
||||
"nodeinfo",
|
||||
"q-manager"
|
||||
];
|
||||
|
||||
|
@@ -53,12 +53,10 @@ const officialAppList = [
|
||||
"q-share",
|
||||
"q-support",
|
||||
"q-mail",
|
||||
"qombo",
|
||||
"q-fund",
|
||||
"q-shop",
|
||||
"q-trade",
|
||||
"q-support",
|
||||
"nodeinfo",
|
||||
"q-manager",
|
||||
"q-mintership"
|
||||
];
|
||||
|
@@ -188,7 +188,7 @@ const onSeenFunc = useCallback(()=> {
|
||||
|
||||
|
||||
</WrapperUserAction>
|
||||
<Tooltip disableFocusListener title={`level ${userInfo}`}>
|
||||
<Tooltip disableFocusListener title={`level ${userInfo ?? 0}`}>
|
||||
|
||||
|
||||
<img style={{
|
||||
|
@@ -404,7 +404,7 @@ export const Group = ({
|
||||
const [openAddGroup, setOpenAddGroup] = useState(false);
|
||||
const [isInitialGroups, setIsInitialGroups] = useState(false);
|
||||
const [openManageMembers, setOpenManageMembers] = useState(false);
|
||||
const { setMemberGroups, rootHeight } = useContext(MyContext);
|
||||
const { setMemberGroups, rootHeight, isRunningPublicNode } = useContext(MyContext);
|
||||
const lastGroupNotification = useRef<null | number>(null);
|
||||
const [timestampEnterData, setTimestampEnterData] = useState({});
|
||||
const [chatMode, setChatMode] = useState("groups");
|
||||
@@ -457,6 +457,8 @@ export const Group = ({
|
||||
return null
|
||||
}, [selectedGroup])
|
||||
|
||||
|
||||
|
||||
|
||||
const setSelectedGroupId = useSetRecoilState(selectedGroupIdAtom)
|
||||
const toggleSideViewDirects = ()=> {
|
||||
@@ -2021,21 +2023,24 @@ export const Group = ({
|
||||
/>
|
||||
Group Mgmt
|
||||
</CustomButton>
|
||||
<CustomButton
|
||||
onClick={() => {
|
||||
setIsOpenBlockedUserModal(true);
|
||||
}}
|
||||
sx={{
|
||||
minWidth: 'unset',
|
||||
padding: '10px'
|
||||
}}
|
||||
>
|
||||
<BlockIcon
|
||||
sx={{
|
||||
color: "white",
|
||||
}}
|
||||
/>
|
||||
</CustomButton>
|
||||
{!isRunningPublicNode && (
|
||||
<CustomButton
|
||||
onClick={() => {
|
||||
setIsOpenBlockedUserModal(true);
|
||||
}}
|
||||
sx={{
|
||||
minWidth: 'unset',
|
||||
padding: '10px'
|
||||
}}
|
||||
>
|
||||
<BlockIcon
|
||||
sx={{
|
||||
color: "white",
|
||||
}}
|
||||
/>
|
||||
</CustomButton>
|
||||
)}
|
||||
|
||||
</>
|
||||
)}
|
||||
{chatMode === "directs" && (
|
||||
|
@@ -1,6 +1,7 @@
|
||||
import { Button, InputAdornment, TextField, TextFieldProps, styled } from "@mui/material";
|
||||
import { Button, ButtonBase, InputAdornment, TextField, TextFieldProps, styled } from "@mui/material";
|
||||
import { forwardRef, useState } from 'react'
|
||||
|
||||
import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
|
||||
import VisibilityIcon from '@mui/icons-material/Visibility';
|
||||
export const CustomInput = styled(TextField)({
|
||||
width: "183px", // Adjust the width as needed
|
||||
borderRadius: "5px",
|
||||
@@ -51,7 +52,11 @@ export const PasswordField = forwardRef<HTMLInputElement, TextFieldProps>( ({ ..
|
||||
<InputAdornment position="end" data-testid="toggle-view-password-btn" onClick={() => {
|
||||
setCanViewPassword((prevState) => !prevState)
|
||||
}}>
|
||||
{canViewPassword ? <Button data-testid="plain-text-indicator" sx={{ minWidth: 0, p: 0 }}>👁️</Button> : <Button data-testid="password-text-indicator" sx={{ minWidth: 0, p: 0 }}>👁️🗨️</Button>}
|
||||
{canViewPassword ? <ButtonBase data-testid="plain-text-indicator" sx={{ minWidth: 0, p: 0 }}><VisibilityOffIcon sx={{
|
||||
color: 'white'
|
||||
}}/></ButtonBase> : <ButtonBase data-testid="password-text-indicator" sx={{ minWidth: 0, p: 0 }}><VisibilityIcon sx={{
|
||||
color: 'white'
|
||||
}} /></ButtonBase>}
|
||||
</InputAdornment>
|
||||
)
|
||||
}}
|
||||
|
@@ -4,6 +4,7 @@ import { executeEvent } from '../utils/events';
|
||||
import { MyContext } from '../App';
|
||||
|
||||
export const WrapperUserAction = ({ children, address, name, disabled }) => {
|
||||
const {isRunningPublicNode} = useContext(MyContext)
|
||||
const [anchorEl, setAnchorEl] = useState(null);
|
||||
|
||||
// Handle child element click to open Popover
|
||||
@@ -138,8 +139,10 @@ export const WrapperUserAction = ({ children, address, name, disabled }) => {
|
||||
User lookup
|
||||
</Button>
|
||||
|
||||
|
||||
<BlockUser handleClose={handleClose} address={address} name={name} />
|
||||
{!isRunningPublicNode && (
|
||||
<BlockUser handleClose={handleClose} address={address} name={name} />
|
||||
|
||||
)}
|
||||
</Box>
|
||||
</Popover>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user