Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix styling of close button in NoMissionsDialog #1828

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -20,9 +14,11 @@ export const NoMissionsDialog = ({ closeDialog }: { closeDialog: () => void }):
{TranslateText('This installation does not have missions. Please create mission.')}
</Typography>
</StyledDialog.Content>
<StyledButton onClick={closeDialog} variant="outlined">
{TranslateText('Cancel')}
</StyledButton>
<StyledDialog.Actions>
<Button onClick={closeDialog} variant="outlined">
{TranslateText('Close')}
</Button>
</StyledDialog.Actions>
</StyledDialog>
)
}
4 changes: 2 additions & 2 deletions frontend/src/components/Pages/RobotPage/RobotArmMovement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ const MoveRobotArm = ({ robot, armPosition, isRobotAvailable }: RobotProps) => {
</StyledTextButton>
<StyledDialog open={feedback !== ''}>
{feedback}
<StyledCloseButton>
<StyledDialog.Actions>
<Button onClick={() => setFeedback('')}>{TranslateText('Close')}</Button>
</StyledCloseButton>
</StyledDialog.Actions>
</StyledDialog>
</>
)
Expand Down
Loading