-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#22 reuse poc relation component #46
Conversation
…able' into feature/#22-reuse-poc-relation-component
|
||
return ( | ||
<DatabaseRelationshipComponent | ||
key={`${relation.fromTableId}-${relation.toTableId}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add fields as well to ensure is unique
endCoords, | ||
}) => { | ||
const drawFork = (forkCoords: Coords, drawLeftToRight: boolean) => { | ||
const lineSpacing = 5; // Spacing between the lines of the fork |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to const like FORK_WIDTH
const direction = drawLeftToRight ? 1 : -1; | ||
|
||
return ( | ||
<g> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TODO adapt to primary color?
No description provided.