Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
columbia-facts committed Apr 28, 2024
1 parent 8df4c99 commit 9013a4e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import ReactFlow, {
Connection,
} from 'reactflow';

import InfoButton from './InfoButton.tsx'
import InfoButton from './InfoButton'

import SimpleNode from './SimpleNode';
import GroupNode from './GroupNode';
Expand Down
21 changes: 21 additions & 0 deletions src/InfoButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import styles from './style.module.css';

interface InfoButtonProps {
url: string;
label: string;
}

const InfoButton: React.FC<InfoButtonProps> = ({ url, label }) => {
const handleClick = () => {
window.open(url, '_blank');
};

return (
<button className={styles.infoButton} onClick={handleClick}>
{label}
</button>
);
};

export default InfoButton;

0 comments on commit 9013a4e

Please sign in to comment.