-
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.
- Loading branch information
1 parent
8368a17
commit 5c6128b
Showing
7 changed files
with
85 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const Button = ({ children, onClick }) => { | ||
return <button onClick={onClick}>{children}</button>; | ||
}; |
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
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
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
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
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,36 @@ | ||
import styled from "styled-components"; | ||
import { Flow } from "../../components/flow"; | ||
import { team1Edges, teamOrganization } from "../../data/data"; | ||
import { Button } from "../../components/button"; | ||
|
||
const FlowWrapper = styled.div` | ||
margin-top: 16px; | ||
height: 316px; | ||
width: 800px; | ||
`; | ||
|
||
const defaultFlowProps = { | ||
fitView: true, | ||
zoom: false, | ||
draggable: false, | ||
}; | ||
|
||
export const TeamFlow = () => { | ||
|
||
const onEditClick = () => { | ||
console.info("Redirect to the edit team page"); | ||
}; | ||
|
||
return ( | ||
<FlowWrapper> | ||
<div style={{ display: "flex", justifyContent: "end" }}> | ||
<Button onClick={onEditClick}>Edit</Button> | ||
</div> | ||
<Flow | ||
initialNodes={teamOrganization} | ||
initialEdges={team1Edges} | ||
{...defaultFlowProps} | ||
/> | ||
</FlowWrapper> | ||
); | ||
}; |
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