Skip to content

Commit

Permalink
refactor: fix typo (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikbossart authored Nov 1, 2023
1 parent e9aa2ec commit da201f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/dm-core-plugins/src/job/CronJob.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ButtonWrapper = styled.div`
margin-top: 30px;
`

export function CreateReoccurringJob(props: {
export function CreateRecurringJob(props: {
close: () => void
removeJob: () => void
// TODO: Export TCronJob from dm-core
Expand Down
8 changes: 4 additions & 4 deletions packages/dm-core-plugins/src/job/JobPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ import {
useJob,
} from '@development-framework/dm-core'
import React, {
ChangeEvent,
useContext,
useEffect,
useMemo,
useState,
ChangeEvent,
} from 'react'
import { Button, Card, Icon, Switch, Typography } from '@equinor/eds-core-react'
import { JobControlButton } from './JobControlButton'
import { refresh } from '@equinor/eds-icons'
import styled from 'styled-components'
import { AxiosError } from 'axios'
import { AuthContext } from 'react-oauth2-code-pkce'
import { CreateReoccurringJob } from './CronJob'
import { CreateRecurringJob } from './CronJob'

const JobButtonWrapper = styled.div`
display: flex;
Expand Down Expand Up @@ -149,14 +149,14 @@ export const JobPlugin = (props: IUIPlugin & { config: JobPluginConfig }) => {
<div>
<Switch
size="small"
label="Reoccurring"
label="Recurring"
onChange={(e: ChangeEvent<HTMLInputElement>) =>
setAsCronJob(e.target.checked)
}
checked={asCronJob}
/>
{asCronJob && (
<CreateReoccurringJob
<CreateRecurringJob
cronJob={jobSchedule}
close={() => setAsCronJob(false)}
removeJob={() => setJobSchedule(emptyJob)}
Expand Down

0 comments on commit da201f9

Please sign in to comment.