mirror of
https://github.com/harness/drone.git
synced 2025-05-11 06:30:06 +08:00
review comment fixed - part 2
This commit is contained in:
parent
c2c49522d3
commit
6a08c491e9
@ -40,7 +40,7 @@ const PluginCategories: PluginInterface[] = [
|
|||||||
{ category: PluginCategory.Drone, name: 'Drone', description: 'Run Drone plugins', icon: 'ci-infra' }
|
{ category: PluginCategory.Drone, name: 'Drone', description: 'Run Drone plugins', icon: 'ci-infra' }
|
||||||
]
|
]
|
||||||
|
|
||||||
const dronePluginSpecMock = {
|
const dronePluginSpecMockData = {
|
||||||
inputs: {
|
inputs: {
|
||||||
channel: {
|
channel: {
|
||||||
type: 'string'
|
type: 'string'
|
||||||
@ -214,7 +214,7 @@ export const PluginsPanel = ({ version = YamlVersion.V0, onPluginAddUpdate }: Pl
|
|||||||
|
|
||||||
const renderPluginConfigForm = useCallback((): JSX.Element => {
|
const renderPluginConfigForm = useCallback((): JSX.Element => {
|
||||||
// TODO obtain plugin input spec by parsing YAML
|
// TODO obtain plugin input spec by parsing YAML
|
||||||
const inputs = get(category === PluginCategory.Drone ? dronePluginSpecMock : runStepSpec, 'inputs', {})
|
const inputs = get(category === PluginCategory.Drone ? dronePluginSpecMockData : runStepSpec, 'inputs', {})
|
||||||
return (
|
return (
|
||||||
<Layout.Vertical
|
<Layout.Vertical
|
||||||
spacing="medium"
|
spacing="medium"
|
||||||
|
Loading…
Reference in New Issue
Block a user