diff --git a/frontend/src/features/MainWindow/components/BannerStack/Item.tsx b/frontend/src/features/MainWindow/components/BannerStack/Item.tsx index 58455ae6ec..d06e633d55 100644 --- a/frontend/src/features/MainWindow/components/BannerStack/Item.tsx +++ b/frontend/src/features/MainWindow/components/BannerStack/Item.tsx @@ -1,7 +1,7 @@ import { Banner, type BannerProps } from '@mtes-mct/monitor-ui' import styled from 'styled-components' -import type { BannerStackItemProps } from './types' +import type { BannerStackItemProps } from '../../types' import type { Promisable } from 'type-fest' type ItemProps = { diff --git a/frontend/src/features/MainWindow/components/BannerStack/types.ts b/frontend/src/features/MainWindow/components/BannerStack/types.ts deleted file mode 100644 index f0eeb1b614..0000000000 --- a/frontend/src/features/MainWindow/components/BannerStack/types.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BannerProps } from '@mtes-mct/monitor-ui' - -export type BannerStackItem = { - props: BannerStackItemProps - rank: number -} -export type BannerStackItemProps = Omit diff --git a/frontend/src/features/MainWindow/dispatchers/addMainWindowBanner.ts b/frontend/src/features/MainWindow/dispatchers/addMainWindowBanner.ts index 4597f5f424..05c7f7752e 100644 --- a/frontend/src/features/MainWindow/dispatchers/addMainWindowBanner.ts +++ b/frontend/src/features/MainWindow/dispatchers/addMainWindowBanner.ts @@ -1,6 +1,6 @@ import { bannerStackAdapter, mainWindowActions } from '../slice' -import type { BannerStackItemProps } from '../components/BannerStack/types' +import type { BannerStackItemProps } from '../types' import type { HomeAppThunk } from '@store/index' /** diff --git a/frontend/src/features/MainWindow/slice.ts b/frontend/src/features/MainWindow/slice.ts index 77e9b5f2b8..f7de2f4704 100644 --- a/frontend/src/features/MainWindow/slice.ts +++ b/frontend/src/features/MainWindow/slice.ts @@ -1,6 +1,6 @@ import { createEntityAdapter, createSlice, type EntityState, type PayloadAction } from '@reduxjs/toolkit' -import type { BannerStackItem } from './components/BannerStack/types' +import type { BannerStackItem } from './types' export const bannerStackAdapter = createEntityAdapter({ selectId: (bannerStackItem: BannerStackItem) => bannerStackItem.rank, diff --git a/frontend/src/features/MainWindow/types.ts b/frontend/src/features/MainWindow/types.ts index cae3cbac72..59041095c8 100644 --- a/frontend/src/features/MainWindow/types.ts +++ b/frontend/src/features/MainWindow/types.ts @@ -1,3 +1,13 @@ +import type { BannerProps } from '@mtes-mct/monitor-ui' + +export type BannerStackItem = { + props: BannerStackItemProps + rank: number +} +export type BannerStackItemProps = Omit & { + children: string +} + export enum MainWindowConfirmationModalActionType { 'DELETE_CONTROL_UNIT_CONTACT' = 'DELETE_CONTROL_UNIT_CONTACT', 'DELETE_CONTROL_UNIT_RESOURCE' = 'DELETE_CONTROL_UNIT_RESOURCE'