diff --git a/src/components/Chat/AdminSpaceInner.tsx b/src/components/Chat/AdminSpaceInner.tsx index 7dbb705..d576bc7 100644 --- a/src/components/Chat/AdminSpaceInner.tsx +++ b/src/components/Chat/AdminSpaceInner.tsx @@ -209,7 +209,7 @@ export const AdminSpaceInner = ({ fontSize: '14px', }} > - {t('auth:message.error.publishing_key', { + {t('auth:message.generic.publishing_key', { postProcess: 'capitalizeFirstChar', })} diff --git a/src/components/Group/BlockedUsersModal.tsx b/src/components/Group/BlockedUsersModal.tsx index a3788fc..df48de7 100644 --- a/src/components/Group/BlockedUsersModal.tsx +++ b/src/components/Group/BlockedUsersModal.tsx @@ -6,6 +6,7 @@ import { DialogContent, DialogContentText, DialogTitle, + IconButton, TextField, Typography, useTheme, @@ -13,6 +14,8 @@ import { import { useContext, useEffect, useState } from 'react'; import { getBaseApiReact, QORTAL_APP_CONTEXT } from '../../App'; import { Spacer } from '../../common/Spacer'; +import CloseIcon from '@mui/icons-material/Close'; + import { executeEvent, subscribeToEvent, @@ -397,7 +400,20 @@ export const BlockedUsersModal = () => { postProcess: 'capitalizeAll', })} - + + + {t('auth:message.generic.blocking', { diff --git a/src/components/Group/Group.tsx b/src/components/Group/Group.tsx index 8d67c47..0fde3d1 100644 --- a/src/components/Group/Group.tsx +++ b/src/components/Group/Group.tsx @@ -16,6 +16,8 @@ import { base64ToUint8Array } from '../../qdn/encryption/group-encryption'; import { uint8ArrayToObject } from '../../encryption/encryption'; import { AddGroup } from './AddGroup'; import CreateIcon from '@mui/icons-material/Create'; +import PersonOffIcon from '@mui/icons-material/PersonOff'; + import { AuthenticatedContainerInnerRight, CustomButton, @@ -61,6 +63,7 @@ import { groupsOwnerNamesAtom, groupsPropertiesAtom, isOpenBlockedModalAtom, + isRunningPublicNodeAtom, memberGroupsAtom, mutedGroupsAtom, selectedGroupIdAtom, @@ -434,6 +437,7 @@ export const Group = ({ const [groupChatTimestamps, setGroupChatTimestamps] = useAtom( groupChatTimestampsAtom ); + const [isRunningPublicNode] = useAtom(isRunningPublicNodeAtom); const [appsMode, setAppsMode] = useState('home'); const [appsModeDev, setAppsModeDev] = useState('home'); @@ -1846,6 +1850,7 @@ export const Group = ({ style={{ display: 'flex', width: '100%', + gap: '10px', justifyContent: 'center', padding: '10px', }} @@ -1866,6 +1871,23 @@ export const Group = ({ postProcess: 'capitalizeFirstChar', })} + {!isRunningPublicNode && ( + { + setIsOpenBlockedUserModal(true); + }} + sx={{ + minWidth: 'unset', + padding: '10px', + }} + > + + + )} ); diff --git a/src/i18n/locales/es/core.json b/src/i18n/locales/es/core.json index f4cae5a..23927cf 100644 --- a/src/i18n/locales/es/core.json +++ b/src/i18n/locales/es/core.json @@ -394,4 +394,4 @@ }, "website": "sitio web", "welcome": "bienvenido" -} +} \ No newline at end of file diff --git a/src/i18n/locales/fr/core.json b/src/i18n/locales/fr/core.json index 7f6fd37..8ddf369 100644 --- a/src/i18n/locales/fr/core.json +++ b/src/i18n/locales/fr/core.json @@ -394,4 +394,4 @@ }, "website": "site web", "welcome": "accueillir" -} +} \ No newline at end of file diff --git a/src/i18n/locales/ja/core.json b/src/i18n/locales/ja/core.json index 00a9c62..1a997b4 100644 --- a/src/i18n/locales/ja/core.json +++ b/src/i18n/locales/ja/core.json @@ -394,4 +394,4 @@ }, "website": "Webサイト", "welcome": "いらっしゃいませ" -} +} \ No newline at end of file diff --git a/src/i18n/locales/zh/core.json b/src/i18n/locales/zh/core.json index f241237..c26611a 100644 --- a/src/i18n/locales/zh/core.json +++ b/src/i18n/locales/zh/core.json @@ -394,4 +394,4 @@ }, "website": "网站", "welcome": "欢迎" -} +} \ No newline at end of file