diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.styles.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.styles.tsx index 90e1dffb59..4069f7b6a6 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.styles.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/Change.styles.tsx @@ -1,7 +1,6 @@ import { styled, Typography, type TypographyProps } from '@mui/material'; import type { FC, PropsWithChildren } from 'react'; -// todo: consider using these export const Action: FC = ({ children, ...props }) => ( {children} diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ReleasePlanChange.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ReleasePlanChange.tsx index d382fbda1e..050205f843 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ReleasePlanChange.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ReleasePlanChange.tsx @@ -1,5 +1,5 @@ import { useRef, useState, type FC, type ReactNode } from 'react'; -import { Box, styled, Typography } from '@mui/material'; +import { Typography } from '@mui/material'; import type { ChangeRequestState, IChangeRequestAddReleasePlan, @@ -14,17 +14,13 @@ import { ReleasePlan } from 'component/feature/FeatureView/FeatureOverview/Relea import { ReleasePlanMilestone } from 'component/feature/FeatureView/FeatureOverview/ReleasePlan/ReleasePlanMilestone/ReleasePlanMilestone'; import type { IReleasePlan } from 'interfaces/releasePlans'; import { Tab, TabList, TabPanel, Tabs } from './ChangeTabComponents.tsx'; -import { ChangeItemInfo, ChangeItemWrapper } from './Change.styles.tsx'; - -const ChangeItemCreateEditDeleteWrapper = styled(Box)(({ theme }) => ({ - display: 'grid', - gridTemplateColumns: 'auto auto', - justifyContent: 'space-between', - gap: theme.spacing(1), - alignItems: 'center', - marginBottom: theme.spacing(2), - width: '100%', -})); +import { + Action, + Added, + ChangeItemInfo, + ChangeItemWrapper, + Deleted, +} from './Change.styles.tsx'; const DeleteReleasePlan: FC<{ change: IChangeRequestDeleteReleasePlan; @@ -43,14 +39,7 @@ const DeleteReleasePlan: FC<{ <> - ({ - color: theme.palette.error.main, - })} - component='span' - > - - Deleting release plan - + Deleting release plan {releasePlan.name} {actions} @@ -87,9 +76,7 @@ const StartMilestone: FC<{ - - + Start milestone - + Start milestone {newMilestone.name} @@ -161,9 +148,7 @@ const AddReleasePlan: FC<{ <> - - + Adding release plan - + Adding release plan {planPreview.name} @@ -179,7 +164,7 @@ const AddReleasePlan: FC<{ - + Replacing{' '} {' '} release plan with - + {planPreview.name}