X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/8a85c509e4f2100082cfed6157d31c8651b861c9..d416c9aa7b70da4f8998792a42616b991d882f26:/src/views/run-process-panel/run-process-panel-root.tsx diff --git a/src/views/run-process-panel/run-process-panel-root.tsx b/src/views/run-process-panel/run-process-panel-root.tsx index 14895275..9dd5aa3f 100644 --- a/src/views/run-process-panel/run-process-panel-root.tsx +++ b/src/views/run-process-panel/run-process-panel-root.tsx @@ -2,9 +2,9 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; -import { Stepper, Step, StepLabel, StepContent } from '@material-ui/core'; -import { RunProcessFirstStepDataProps, RunProcessFirstStepActionProps, RunProcessFirstStep } from '~/views/run-process-panel/run-process-first-step'; +import React from 'react'; +import { Stepper, Step, StepLabel, StepContent, StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core'; +import { RunProcessFirstStepDataProps, RunProcessFirstStepActionProps, RunProcessFirstStep } from 'views/run-process-panel/run-process-first-step'; import { RunProcessSecondStepForm } from './run-process-second-step'; export type RunProcessPanelRootDataProps = { @@ -17,25 +17,34 @@ export type RunProcessPanelRootActionProps = RunProcessFirstStepActionProps & { type RunProcessPanelRootProps = RunProcessPanelRootDataProps & RunProcessPanelRootActionProps; -export const RunProcessPanelRoot = ({ runProcess, currentStep, onSearch, onSetStep, onSetWorkflow, workflows, selectedWorkflow }: RunProcessPanelRootProps) => - - - Choose a workflow - - - - - - Select inputs - - onSetStep(0)} - runProcess={runProcess} /> - - - ; \ No newline at end of file +type CssRules = 'stepper'; + +const styles: StyleRulesCallback = theme => ({ + stepper: { + overflow: "scroll", + } +}); + +export const RunProcessPanelRoot = withStyles(styles)( + ({ runProcess, currentStep, onSearch, onSetStep, onSetWorkflow, workflows, selectedWorkflow, classes }: WithStyles & RunProcessPanelRootProps) => + + + Choose a workflow + + + + + + Select inputs + + onSetStep(0)} + runProcess={runProcess} /> + + + );