Skip to content
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

Merged
merged 6 commits into from
Jan 5, 2024

Conversation

brauliodiez
Copy link
Member

No description provided.


return (
<DatabaseRelationshipComponent
key={`${relation.fromTableId}-${relation.toTableId}`}
Copy link
Member Author

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
Copy link
Member Author

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>
Copy link
Member Author

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?

@brauliodiez brauliodiez merged commit 7d4ffcf into main Jan 5, 2024
1 check passed
@brauliodiez brauliodiez deleted the feature/#22-reuse-poc-relation-component branch January 5, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant