mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add twitter emojis to reviews
This commit is contained in:
parent
fc26e299a1
commit
c62207f605
@ -30,6 +30,7 @@
|
|||||||
"react-router-dom": "latest",
|
"react-router-dom": "latest",
|
||||||
"react-scripts": "2.1.8",
|
"react-scripts": "2.1.8",
|
||||||
"react-star-ratings": "^2.3.0",
|
"react-star-ratings": "^2.3.0",
|
||||||
|
"react-twemoji": "^0.2.3",
|
||||||
"react-virtualized": "^9.21.1",
|
"react-virtualized": "^9.21.1",
|
||||||
"reqwest": "^2.0.5",
|
"reqwest": "^2.0.5",
|
||||||
"storm-react-diagrams": "^5.2.1"
|
"storm-react-diagrams": "^5.2.1"
|
||||||
|
|||||||
@ -14,3 +14,10 @@
|
|||||||
bottom: -40px;
|
bottom: -40px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img.twemoji {
|
||||||
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
|
margin: 0 .05em 0 .1em;
|
||||||
|
vertical-align: -0.1em;
|
||||||
|
}
|
||||||
@ -2,6 +2,8 @@ import React from "react";
|
|||||||
import {Avatar} from "antd";
|
import {Avatar} from "antd";
|
||||||
import {List, Typography} from "antd";
|
import {List, Typography} from "antd";
|
||||||
import StarRatings from "react-star-ratings";
|
import StarRatings from "react-star-ratings";
|
||||||
|
import Twemoji from "react-twemoji";
|
||||||
|
import "./Reviews.css";
|
||||||
|
|
||||||
const {Text, Paragraph} = Typography;
|
const {Text, Paragraph} = Typography;
|
||||||
const colorList = ['#f0932b', '#badc58', '#6ab04c', '#eb4d4b', '#0abde3', '#9b59b6', '#3498db', '#22a6b3'];
|
const colorList = ['#f0932b', '#badc58', '#6ab04c', '#eb4d4b', '#0abde3', '#9b59b6', '#3498db', '#22a6b3'];
|
||||||
@ -23,7 +25,11 @@ class SingleReview extends React.Component {
|
|||||||
name='rating'
|
name='rating'
|
||||||
/>
|
/>
|
||||||
<Text style={{fontSize: 12, color: "#aaa"}} type="secondary"> {review.createdAt}</Text><br/>
|
<Text style={{fontSize: 12, color: "#aaa"}} type="secondary"> {review.createdAt}</Text><br/>
|
||||||
<Paragraph ellipsis={{ rows: 3, expandable: true }} style={{color: "#777"}}>{review.content}</Paragraph>
|
<Twemoji options={{className: 'twemoji'}}>
|
||||||
|
<Paragraph ellipsis={{rows: 3, expandable: true}} style={{color: "#777"}}>
|
||||||
|
{review.content}
|
||||||
|
</Paragraph>
|
||||||
|
</Twemoji>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user