-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOP-22352] add SourceParamsNode and TargetParamsNode
- Loading branch information
Zabilsya
committed
Jan 21, 2025
1 parent
8afd427
commit 40548b4
Showing
10 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/features/transfer/MutateTransferForm/components/SourceParams/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { ConnectionType } from '@shared/types'; | ||
|
||
export interface SourceParamsProps { | ||
export type SourceParamsProps = { | ||
groupId: number; | ||
initialSourceConnectionType?: ConnectionType; | ||
} | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/features/transfer/MutateTransferForm/components/SourceParamsNode/SourceParamsNode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import { SourceParams } from '../SourceParams'; | ||
|
||
import { SourceParamsNodeProps } from './types'; | ||
|
||
export const SourceParamsNode = ({ data }: SourceParamsNodeProps) => { | ||
return <SourceParams groupId={data.groupId} initialSourceConnectionType={data.initialSourceConnectionType} />; | ||
}; |
2 changes: 2 additions & 0 deletions
2
src/features/transfer/MutateTransferForm/components/SourceParamsNode/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './SourceParamsNode'; | ||
export * from './types'; |
8 changes: 8 additions & 0 deletions
8
src/features/transfer/MutateTransferForm/components/SourceParamsNode/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Node, NodeProps } from '@xyflow/react'; | ||
|
||
import { SourceParamsProps } from '../SourceParams'; | ||
|
||
//TODO: [DOP-22354] change 'sourceParams' to NodeType.SOURCE | ||
export interface SourceParamsNodeData extends Node<SourceParamsProps, 'sourceParams'> {} | ||
|
||
export interface SourceParamsNodeProps extends NodeProps<SourceParamsNodeData> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/features/transfer/MutateTransferForm/components/TargetParams/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { ConnectionType } from '@shared/types'; | ||
|
||
export interface TargetParamsProps { | ||
export type TargetParamsProps = { | ||
groupId: number; | ||
initialTargetConnectionType?: ConnectionType; | ||
} | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/features/transfer/MutateTransferForm/components/TargetParamsNode/TargetParamsNode.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
import { TargetParams } from '../TargetParams'; | ||
|
||
import { TargetParamsNodeProps } from './types'; | ||
|
||
export const TargetParamsNode = ({ data }: TargetParamsNodeProps) => { | ||
return <TargetParams groupId={data.groupId} initialTargetConnectionType={data.initialTargetConnectionType} />; | ||
}; |
2 changes: 2 additions & 0 deletions
2
src/features/transfer/MutateTransferForm/components/TargetParamsNode/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './TargetParamsNode'; | ||
export * from './types'; |
8 changes: 8 additions & 0 deletions
8
src/features/transfer/MutateTransferForm/components/TargetParamsNode/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Node, NodeProps } from '@xyflow/react'; | ||
|
||
import { TargetParamsProps } from '../TargetParams'; | ||
|
||
//TODO: [DOP-22354] change 'targetParams' to NodeType.TARGET | ||
export interface TargetParamsNodeData extends Node<TargetParamsProps, 'targetParams'> {} | ||
|
||
export interface TargetParamsNodeProps extends NodeProps<TargetParamsNodeData> {} |