Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Chat): add content and renderContent props #348

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Oct 10, 2018

This PR adds the content prop and renderContent callback prop to all Chat components.

Also, the ChatMessage was hardcoded to show/hide certain slots based on if the message is mine. This logic has been moved to the Teams theme styles instead.

@levithomason levithomason force-pushed the fix/chat-render-props branch from 08cbefd to 56d41aa Compare October 10, 2018 23:26
@codecov
Copy link

codecov bot commented Oct 10, 2018

Codecov Report

Merging #348 into master will increase coverage by <.01%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
+ Coverage   89.73%   89.73%   +<.01%     
==========================================
  Files          64       64              
  Lines        1237     1247      +10     
  Branches      157      181      +24     
==========================================
+ Hits         1110     1119       +9     
  Misses        125      125              
- Partials        2        3       +1
Impacted Files Coverage Δ
src/components/Chat/ChatMessage.tsx 96.22% <100%> (+0.22%) ⬆️
src/components/Chat/ChatItem.tsx 95.65% <90.9%> (-4.35%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3421c5e...56d41aa. Read the comment docs.

@levithomason levithomason merged commit c953ef8 into master Oct 11, 2018
@levithomason levithomason deleted the fix/chat-render-props branch October 11, 2018 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants