-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to collapse the queue message (#212)
* Rewrite QueueMessage with hooks * Extract parrot-enabled markdown to component * Collapse staff message; refactor message editor * Extract message viewer into component * Improve styling of staff message viewer * Improve styling of staff message editor * Improve styling of message panel * Persist message collapsed state in local storage * Add changelog entry * Move cursor to start of textarea on edit * Fix errors in hook * Fix errors in hook * Improve variable names in local storage hook * Add hooks linter; switch to published hook package
- Loading branch information
1 parent
bba9d34
commit 1504591
Showing
9 changed files
with
321 additions
and
193 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import ReactMarkdown from 'react-markdown' | ||
|
||
import ParrotText from './ParrotText' | ||
|
||
const ParrotMarkdown = props => { | ||
const renderers = { | ||
text: element => <ParrotText text={element.children} />, | ||
} | ||
return <ReactMarkdown {...props} renderers={renderers} /> | ||
} | ||
|
||
ParrotMarkdown.propTypes = ReactMarkdown.propTypes | ||
|
||
export default ParrotMarkdown |
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.