File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/pages/participatingResourcesPage/SearchResult Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useEffect } from 'react' ;
2
+ import ReactHtmlParser from 'html-react-parser' ;
2
3
import styled from 'styled-components' ;
3
4
import PropTypes from 'prop-types' ;
4
5
import { Popover } from 'bootstrap' ;
@@ -58,12 +59,19 @@ const ResourceIcon = styled.div`
58
59
59
60
const ResourceDesc = styled . div `
60
61
width: 100%;
61
- display: flex;
62
+ // display: flex;
62
63
margin-top: 15px;
63
64
word-wrap: break-word;
64
65
hyphens: auto;
65
66
font-size: 0.9rem;
66
67
font-weight: 500;
68
+
69
+ a {
70
+ color: #00a272;
71
+ background: url(${ externalIcon } ) right center no-repeat;
72
+ padding-right: 30px;
73
+ background-size: 32px;
74
+ }
67
75
` ;
68
76
69
77
const ResourceContact = styled . div `
@@ -254,7 +262,7 @@ const SearchResult = ({
254
262
</ ResourceLogo >
255
263
</ ResourceHeader >
256
264
< ResourceDesc >
257
- { rst . description }
265
+ { rst . description && ReactHtmlParser ( rst . description ) }
258
266
</ ResourceDesc >
259
267
< ResourceContact >
260
268
< ContactInfo >
You can’t perform that action at this time.
0 commit comments