-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different components for blocks and nodes
- Loading branch information
1 parent
da90f9c
commit 6256ca9
Showing
10 changed files
with
270 additions
and
264 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
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,21 @@ | ||
import React from 'react'; | ||
import BaseBlockComponent from '../../types/BaseBlockComponent'; | ||
import { OnBlockClick } from '../../types/BlockPickerMenu'; | ||
|
||
type Props = { | ||
onClick?: OnBlockClick; | ||
}; | ||
|
||
const InformationBlock: BaseBlockComponent<Props> = (props) => { | ||
const { onClick } = props; | ||
|
||
return ( | ||
<div | ||
onClick={() => onClick && onClick('information')} | ||
> | ||
Information | ||
</div> | ||
); | ||
}; | ||
|
||
export default InformationBlock; |
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,21 @@ | ||
import React from 'react'; | ||
import BaseBlockComponent from '../../types/BaseBlockComponent'; | ||
import { OnBlockClick } from '../../types/BlockPickerMenu'; | ||
|
||
type Props = { | ||
onClick?: OnBlockClick; | ||
}; | ||
|
||
const QuestionBlock: BaseBlockComponent<Props> = (props) => { | ||
const { onClick } = props; | ||
|
||
return ( | ||
<div | ||
onClick={() => onClick && onClick('question')} | ||
> | ||
Question | ||
</div> | ||
); | ||
}; | ||
|
||
export default QuestionBlock; |
This file was deleted.
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
Oops, something went wrong.
6256ca9
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.
Successfully deployed to the following URLs: