From 832e484c985c99864f6f96476dc0d2f4d695fd3d Mon Sep 17 00:00:00 2001 From: Eddasol Date: Fri, 29 Nov 2024 09:09:59 +0100 Subject: [PATCH] Fix styling of close button in NoMissionsDialog --- .../ScheduleMissionDialog/NoMissionsDialog.tsx | 14 +++++--------- .../Pages/RobotPage/RobotArmMovement.tsx | 4 ++-- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/Pages/FrontPage/MissionOverview/ScheduleMissionDialog/NoMissionsDialog.tsx b/frontend/src/components/Pages/FrontPage/MissionOverview/ScheduleMissionDialog/NoMissionsDialog.tsx index 0a8040c2c..3af57a00f 100644 --- a/frontend/src/components/Pages/FrontPage/MissionOverview/ScheduleMissionDialog/NoMissionsDialog.tsx +++ b/frontend/src/components/Pages/FrontPage/MissionOverview/ScheduleMissionDialog/NoMissionsDialog.tsx @@ -1,13 +1,7 @@ import { Button, Typography } from '@equinor/eds-core-react' -import styled from 'styled-components' import { useLanguageContext } from 'components/Contexts/LanguageContext' import { StyledDialog } from 'components/Styles/StyledComponents' -const StyledButton = styled(Button)` - display: flex; - justify-content: end; -` - export const NoMissionsDialog = ({ closeDialog }: { closeDialog: () => void }): JSX.Element => { const { TranslateText } = useLanguageContext() return ( @@ -20,9 +14,11 @@ export const NoMissionsDialog = ({ closeDialog }: { closeDialog: () => void }): {TranslateText('This installation does not have missions. Please create mission.')} - - {TranslateText('Cancel')} - + + + ) } diff --git a/frontend/src/components/Pages/RobotPage/RobotArmMovement.tsx b/frontend/src/components/Pages/RobotPage/RobotArmMovement.tsx index 8005f06f9..4cb0efe83 100644 --- a/frontend/src/components/Pages/RobotPage/RobotArmMovement.tsx +++ b/frontend/src/components/Pages/RobotPage/RobotArmMovement.tsx @@ -129,9 +129,9 @@ const MoveRobotArm = ({ robot, armPosition, isRobotAvailable }: RobotProps) => { {feedback} - + - + )