Skip to content

Commit

Permalink
Merge pull request #289 from kube-HPC/help-links
Browse files Browse the repository at this point in the history
add test link
  • Loading branch information
zivglik authored Apr 24, 2023
2 parents a58af09 + b9b84aa commit 280e4e3
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/Routes/SidebarRight/AddPipeline/Steps/Initial/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import { Input, Radio, Select } from 'antd';
import { Form, EditableTagGroup, FlexBox } from 'components/common';
import { useExperiments } from 'hooks/graphql';

import { QuestionCircleOutlined } from '@ant-design/icons';
import ControllerKeyValue from '../Nodes/inputKeyValueJson';
import useWizardContext from '../../useWizardContext';
import DrawerReadMeFile from '../../../../../components/Drawer/DrawerReadMeFile';

const { Option } = Select;

const openUrl = url => () => window.open(url);
/** @param {{ style: import('react').CSSProperties }} props */
const Initial = ({ style }) => {
const { isEdit, isRunPipeline, valuesState } = useWizardContext();
Expand Down Expand Up @@ -63,10 +64,20 @@ const Initial = ({ style }) => {
{isRunPipeline ? (
valuesState?.kind
) : (
<Radio.Group>
<Radio.Button value="batch">Batch</Radio.Button>
<Radio.Button value="stream">Streaming</Radio.Button>
</Radio.Group>
<>
<Radio.Group>
<Radio.Button value="batch">Batch</Radio.Button>
<Radio.Button value="stream">Streaming</Radio.Button>
</Radio.Group>
<QuestionCircleOutlined
onClick={openUrl('/hkube/site/learn/streaming/')}
/>
<QuestionCircleOutlined
onClick={openUrl(
`${process.env.REACT_APP_SITEBASEURL}/learn/streaming/`
)}
/>
</>
)}
</Form.Item>

Expand Down

0 comments on commit 280e4e3

Please sign in to comment.