fix(#34): spotlight room name TG rooms icons (#35)

* fix(#34): spotlight room name TG rooms icons

* fix(#33): remove mint token button from sidebar
pull/27073/head
Badi Ifaoui 2024-01-16 10:55:04 +01:00 committed by GitHub
parent c47cd410de
commit 890ae1188c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1306 additions and 5 deletions

View File

@ -13,5 +13,6 @@
"src/autocomplete/Autocompleter.ts": "src/autocomplete/Autocompleter.ts",
"src/components/views/dialogs/InviteDialog.tsx": "src/components/views/dialogs/InviteDialog.tsx",
"src/components/views/right_panel/UserInfo.tsx": "src/components/views/right_panel/UserInfo.tsx",
"src/components/structures/HomePage.tsx": "src/components/structures/HomePage.tsx"
"src/components/structures/HomePage.tsx": "src/components/structures/HomePage.tsx",
"src/components/views/dialogs/spotlight/SpotlightDialog.tsx": "src/components/views/dialogs/spotlight/SpotlightDialog.tsx"
}

File diff suppressed because it is too large Load Diff

View File

@ -58,9 +58,9 @@ export const RoomName = ({ room, children, maxLength }: IProps): JSX.Element =>
{isCommunityRoom && <CommunityRoomIcon className="sh_RoomTokenGatedRoomIcon" />}
{isTokenGatedRoom && <TokenGatedRoomIcon className="sh_RoomTokenGatedRoomIcon" />}
<span dir="auto">{truncatedRoomName}</span>
{roomUsers?.length && !isTokenGatedRoom && !isCommunityRoom && (
{(roomUsers?.length && !isTokenGatedRoom && !isCommunityRoom) ? (
<UserVerifiedBadge userId={roomUsers[0]} />
)}
) : null}
</span>
),
[truncatedRoomName, isCommunityRoom, isTokenGatedRoom, roomUsers],

View File

@ -74,7 +74,6 @@ import React, {
import { DragDropContext, Draggable, Droppable, DroppableProvidedProps } from "react-beautiful-dnd";
import SuperheroDexButton from "./SuperheroDexButton";
import MintTokenButton from "./MintTokenButton";
const useSpaces = (): [Room[], MetaSpace[], Room[], SpaceKey] => {
const invites = useEventEmitterState<Room[]>(SpaceStore.instance, UPDATE_INVITED_SPACES, () => {
@ -409,7 +408,6 @@ const SpacePanel: React.FC = () => {
</Droppable>
<SuperheroDexButton isPanelCollapsed={isPanelCollapsed} />
<MintTokenButton isPanelCollapsed={isPanelCollapsed} />
<QuickSettingsButton isPanelCollapsed={isPanelCollapsed} />
</div>
</DragDropContext>