From a486eb97d87e183126225a4e6256f19a852f7632 Mon Sep 17 00:00:00 2001 From: hazre Date: Mon, 2 Mar 2026 09:46:19 +0100 Subject: [PATCH] fix(eslint): break import-x/no-cycle dependency chains --- src/app/components/message/content/EventContent.tsx | 2 +- src/app/features/call/CinnyWidget.ts | 2 +- src/app/features/room/room-pin-menu/RoomPinMenu.tsx | 2 +- src/app/state/userRoomProfile.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/message/content/EventContent.tsx b/src/app/components/message/content/EventContent.tsx index 6aa98d6f..6a24ec83 100644 --- a/src/app/components/message/content/EventContent.tsx +++ b/src/app/components/message/content/EventContent.tsx @@ -1,7 +1,7 @@ import { Box, Icon, IconSrc } from 'folds'; import { ReactNode } from 'react'; import { MessageLayout } from '$state/settings'; -import { BubbleLayout, CompactLayout, ModernLayout } from '..'; +import { BubbleLayout, CompactLayout, ModernLayout } from '../layout'; export type EventContentProps = { messageLayout: number; diff --git a/src/app/features/call/CinnyWidget.ts b/src/app/features/call/CinnyWidget.ts index 3894af87..e5dfaec7 100644 --- a/src/app/features/call/CinnyWidget.ts +++ b/src/app/features/call/CinnyWidget.ts @@ -1,5 +1,5 @@ import { Widget } from 'matrix-widget-api'; -import { IApp } from './SmallWidget'; +import type { IApp } from './SmallWidget'; // Wrapper class for the widget definition export class CinnyWidget extends Widget { diff --git a/src/app/features/room/room-pin-menu/RoomPinMenu.tsx b/src/app/features/room/room-pin-menu/RoomPinMenu.tsx index bad79cee..3dfbbaf1 100644 --- a/src/app/features/room/room-pin-menu/RoomPinMenu.tsx +++ b/src/app/features/room/room-pin-menu/RoomPinMenu.tsx @@ -88,7 +88,7 @@ import { AccountDataEvent } from '$types/matrix/accountData'; import { useSableCosmetics } from '$hooks/useSableCosmetics'; import { EncryptedContent } from '../message'; import * as css from './RoomPinMenu.css'; -import { PinReadMarker } from '../RoomViewHeader'; +import type { PinReadMarker } from '../RoomViewHeader'; const log = createLogger('RoomPinMenu'); diff --git a/src/app/state/userRoomProfile.ts b/src/app/state/userRoomProfile.ts index 72b5101a..3f30a02e 100644 --- a/src/app/state/userRoomProfile.ts +++ b/src/app/state/userRoomProfile.ts @@ -1,6 +1,6 @@ import { Position, RectCords } from 'folds'; import { atom } from 'jotai'; -import { UserProfile } from '../hooks/useUserProfile'; +import type { UserProfile } from '../hooks/useUserProfile'; export type UserRoomProfileState = { userId: string;