-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app-board): add game view draft
- Loading branch information
Showing
19 changed files
with
801 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
import React from 'react'; | ||
import { useDroppable } from '@dnd-kit/core'; | ||
|
||
type Props = {}; | ||
|
||
/** | ||
* Game board where the pipeline will be created placing the cards. | ||
* It's a droppable area so you can drag the cards in it coming from the panel | ||
* or moving cards inside the board directly | ||
*/ | ||
const Board: React.FC<Props> = ({ children }) => { | ||
const { setNodeRef } = useDroppable({ | ||
id: 'board', | ||
}); | ||
|
||
return ( | ||
<div className="board" ref={setNodeRef}> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
Board.displayName = 'Board'; | ||
|
||
export default Board; |
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 @@ | ||
import Board from './Board'; | ||
|
||
export default Board; |
Oops, something went wrong.