Remove unused tasks props
parent
9f1658e40d
commit
be4e440300
ui/src
dataExplorer/components
tasks
components
containers
|
@ -82,7 +82,6 @@ class SaveAsTaskForm extends PureComponent<Props & WithRouterProps> {
|
|||
taskOptions={taskOptions}
|
||||
onChangeScheduleType={this.handleChangeScheduleType}
|
||||
onChangeInput={this.handleChangeInput}
|
||||
onChangeToOrgName={this.handleChangeToOrgName}
|
||||
onChangeToBucketName={this.handleChangeToBucketName}
|
||||
isInOverlay={true}
|
||||
onSubmit={this.handleSubmit}
|
||||
|
@ -132,12 +131,6 @@ class SaveAsTaskForm extends PureComponent<Props & WithRouterProps> {
|
|||
saveNewScript(script, preamble)
|
||||
}
|
||||
|
||||
private handleChangeToOrgName = (orgName: string) => {
|
||||
const {setTaskOption} = this.props
|
||||
|
||||
setTaskOption({key: 'toOrgName', value: orgName})
|
||||
}
|
||||
|
||||
private handleChangeToBucketName = (bucketName: string) => {
|
||||
const {setTaskOption} = this.props
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ interface Props {
|
|||
dismiss: () => void
|
||||
onChangeScheduleType: (schedule: TaskSchedule) => void
|
||||
onChangeInput: (e: ChangeEvent<HTMLInputElement>) => void
|
||||
onChangeToOrgName: (orgName: string) => void
|
||||
onChangeToBucketName: (bucketName: string) => void
|
||||
}
|
||||
|
||||
|
@ -53,7 +52,6 @@ export default class TaskForm extends PureComponent<Props, State> {
|
|||
onSubmit: () => {},
|
||||
dismiss: () => {},
|
||||
onChangeToBucketName: () => {},
|
||||
onChangeToOrgName: () => {},
|
||||
}
|
||||
|
||||
constructor(props: Props) {
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
addDestinationToFluxScript,
|
||||
} from 'src/utils/taskOptionsToFluxScript'
|
||||
|
||||
import {Organization, AppState} from 'src/types'
|
||||
import {AppState} from 'src/types'
|
||||
import {
|
||||
TaskOptions,
|
||||
TaskOptionKeys,
|
||||
|
@ -37,10 +37,8 @@ interface PassedInProps {
|
|||
}
|
||||
|
||||
interface ConnectStateProps {
|
||||
org: Organization
|
||||
taskOptions: TaskOptions
|
||||
newScript: string
|
||||
tasksLink: string
|
||||
}
|
||||
|
||||
interface ConnectDispatchProps {
|
||||
|
@ -54,10 +52,6 @@ interface ConnectDispatchProps {
|
|||
class TaskPage extends PureComponent<
|
||||
PassedInProps & ConnectStateProps & ConnectDispatchProps
|
||||
> {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
public componentDidMount() {
|
||||
this.props.setTaskOption({
|
||||
key: 'taskScheduleType',
|
||||
|
@ -144,12 +138,10 @@ class TaskPage extends PureComponent<
|
|||
}
|
||||
}
|
||||
|
||||
const mstp = ({tasks, links, orgs: {org}}: AppState): ConnectStateProps => {
|
||||
const mstp = ({tasks}: AppState): ConnectStateProps => {
|
||||
return {
|
||||
org,
|
||||
taskOptions: tasks.taskOptions,
|
||||
newScript: tasks.newScript,
|
||||
tasksLink: links.tasks,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue