File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/components/Widget/components/Conversation/components/Messages/components Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ class Message extends PureComponent {
2626 transformLinkUri = { null }
2727 renderers = { {
2828 link : props =>
29- docViewer ? < DocViewer src = { props . href } /> : < a href = { props . href } > { props . href } </ a >
29+ docViewer ? (
30+ < DocViewer src = { props . href } > { props . children } </ DocViewer >
31+ ) : (
32+ < a href = { props . href } > { props . children } </ a >
33+ )
3034 } }
3135 />
3236 ) : (
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class DocViewer extends Component {
5050 return (
5151 < span >
5252 < button onClick = { this . handleOpenModal } className = "doc-viewer-open-modal-link" >
53- { this . props . src }
53+ { this . props . children }
5454 </ button >
5555 { this . state . openedModal && (
5656 < Portal >
You can’t perform that action at this time.
0 commit comments