mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-04 14:30:29 +03:00
clean up conflicts
This commit is contained in:
parent
b9ce2519db
commit
24b3b9cf52
2 changed files with 3 additions and 14 deletions
|
|
@ -194,16 +194,6 @@ export function Lobby() {
|
|||
|
||||
const getRoom = useGetRoom(allJoinedRooms);
|
||||
|
||||
const canEditSpaceChild = useCallback(
|
||||
(powerLevels: IPowerLevels) =>
|
||||
powerLevelAPI.canSendStateEvent(
|
||||
powerLevels,
|
||||
StateEvent.SpaceChild,
|
||||
powerLevelAPI.getPowerLevel(powerLevels, mx.getUserId() ?? undefined)
|
||||
),
|
||||
[mx]
|
||||
);
|
||||
|
||||
const closedCategoriesCache = useRef(new Map());
|
||||
useEffect(() => {
|
||||
closedCategoriesCache.current.clear();
|
||||
|
|
|
|||
|
|
@ -362,7 +362,6 @@ function AddSpaceButton({ item }: { item: HierarchyItem }) {
|
|||
</FocusTrap>
|
||||
}
|
||||
>
|
||||
|
||||
{item.parentId === undefined ? (
|
||||
<Chip
|
||||
variant="SurfaceVariant"
|
||||
|
|
@ -373,9 +372,6 @@ function AddSpaceButton({ item }: { item: HierarchyItem }) {
|
|||
>
|
||||
<Text size="B300">Add Space</Text>
|
||||
</Chip>
|
||||
{addExisting && (
|
||||
<AddExistingModal space parentId={item.roomId} requestClose={() => setAddExisting(false)} />
|
||||
)}
|
||||
) : (
|
||||
<TooltipProvider
|
||||
position="Bottom"
|
||||
|
|
@ -402,6 +398,9 @@ function AddSpaceButton({ item }: { item: HierarchyItem }) {
|
|||
)}
|
||||
</TooltipProvider>
|
||||
)}
|
||||
{addExisting && (
|
||||
<AddExistingModal space parentId={item.roomId} requestClose={() => setAddExisting(false)} />
|
||||
)}
|
||||
</PopOut>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue