File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
src/Pages/App/Configurations/WorkflowEditor/SourceMaterialsSelector Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import { CustomInputProps , MaterialType , SelectPickerProps } from '@devtron-labs/devtron-fe-common-lib'
18
18
19
- export interface SourceMaterialsSelectorProps {
20
- repoName ?: string
19
+ type CommonSourceTypeProps = {
21
20
sourceTypePickerProps : Omit <
22
21
SelectPickerProps < string | number , false > ,
23
22
'required' | 'isClearable' | 'closeMenuOnSelect' | 'size'
24
23
>
25
24
branchInputProps : Omit < CustomInputProps , 'required' | 'type' > & {
26
25
hideInput ?: boolean
27
26
}
28
- gitURL ?: MaterialType [ 'url' ]
29
27
}
28
+
29
+ export type SourceMaterialsSelectorProps =
30
+ | ( CommonSourceTypeProps & {
31
+ repoName : string
32
+ gitURL : MaterialType [ 'url' ]
33
+ } )
34
+ | ( CommonSourceTypeProps & {
35
+ repoName ?: never
36
+ gitURL ?: never
37
+ } )
You can’t perform that action at this time.
0 commit comments