Skip to content

Commit

Permalink
Deleting create new echo mission button and link
Browse files Browse the repository at this point in the history
  • Loading branch information
betaniat committed Jul 17, 2024
1 parent b098c65 commit 811ac69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 52 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Button, Typography } from '@equinor/eds-core-react'
import styled from 'styled-components'
import { useLanguageContext } from 'components/Contexts/LanguageContext'
import { CreateEchoMissionButton } from 'components/Displays/MissionButtons/CreateEchoMissionButton'
import { StyledDialog } from 'components/Styles/StyledComponents'

const StyledMissionSection = styled.div`
const StyledButton = styled(Button)`
display: flex;
justify-content: end;
gap: 10px;
`

export const NoMissionsDialog = ({ closeDialog }: { closeDialog: () => void }): JSX.Element => {
Expand All @@ -22,12 +20,9 @@ export const NoMissionsDialog = ({ closeDialog }: { closeDialog: () => void }):
{TranslateText('This installation does not have missions. Please create mission.')}
</Typography>
</StyledDialog.Content>
<StyledMissionSection>
<Button onClick={closeDialog} variant="outlined">
{TranslateText('Cancel')}
</Button>
<CreateEchoMissionButton />
</StyledMissionSection>
<StyledButton onClick={closeDialog} variant="outlined">
{TranslateText('Cancel')}
</StyledButton>
</StyledDialog>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { AllInspectionsTable } from './InspectionTable'
import { getInspectionDeadline } from 'utils/StringFormatting'
import styled from 'styled-components'
import { ScheduleMissionDialog } from '../FrontPage/MissionOverview/ScheduleMissionDialog/ScheduleMissionDialog'
import { CreateEchoMissionButton } from 'components/Displays/MissionButtons/CreateEchoMissionButton'
import { useInstallationContext } from 'components/Contexts/InstallationContext'
import { useRobotContext } from 'components/Contexts/RobotContext'
import { AlertType, useAlertContext } from 'components/Contexts/AlertContext'
Expand All @@ -25,10 +24,8 @@ const StyledContent = styled.div`
align-items: end;
`

const StyledButtons = styled.div`
const StyledEchoMissionButton = styled.div`
display: flex;
flex-direction: row;
gap: 8px;
padding-bottom: 30px;
`

Expand Down Expand Up @@ -115,7 +112,7 @@ export const InspectionOverviewSection = () => {
<Tabs.Panel>
<StyledView>
<StyledContent>
<StyledButtons>
<StyledEchoMissionButton>
{isScheduleMissionDialogOpen && (
<ScheduleMissionDialog
isFetchingEchoMissions={isFetchingEchoMissions}
Expand All @@ -124,8 +121,7 @@ export const InspectionOverviewSection = () => {
/>
)}
<AddPredefinedMissionsButton />
<CreateEchoMissionButton />
</StyledButtons>
</StyledEchoMissionButton>
{allInspections.length > 0 ? (
<AllInspectionsTable inspections={allInspections} />
) : (
Expand Down

0 comments on commit 811ac69

Please sign in to comment.