Skip to content

Commit

Permalink
✨ Add Header block
Browse files Browse the repository at this point in the history
  • Loading branch information
raycharius committed Jul 30, 2020
1 parent a1d661b commit efa67c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ const getBlocks = () => {
/**
* Creates and returns a Header Block
*
* {@link https://api.slack.com/reference/block-kit/blocks#section|View in Slack API Documentation}
* {@link https://api.slack.com/reference/block-kit/blocks#header|View in Slack API Documentation}
*
* @param {Object} [params] Constructor parameters
* @param {string} [params.blockId] Sets a string to be an identifier for the block, that will be available in interaction payloads
* @param {string} [params.text] Sets the text to be displayed in the Header Block
* @return {Section} An instance of Section
* @return {Section} An instance of Header
*/

Header: (params) => getInstance(Header, params),
Expand Down
1 change: 1 addition & 0 deletions tests/blocks/mocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
Context,
Divider,
File,
Header,
Image,
Input,
Section,
Expand Down

0 comments on commit efa67c3

Please sign in to comment.