reza added somethins

front
Reza_ashrafi 4 years ago
parent d4e990a5db
commit 36afd8c740
  1. 23
      src/views/ChatRoom/Body/ChatSuggest/ChatSuggest.js

@ -7,8 +7,8 @@ export default class ChatSuggest extends Component {
return (
<div className="chat-suggest portrait-slider d-flex flex-column">
<Carousel itemsToShow={1} isRTL={true} enableTilt={true} showArrows={false}>
{suggest.map((item, i) => (
<Suggest item={item} key={i} />
{suggest.map((row, i) => (
<Row row={row} key={i} />
))}
</Carousel>
</div>
@ -16,9 +16,16 @@ export default class ChatSuggest extends Component {
}
}
class Suggest extends Component {
render() {
const { item } = this.props;
return <div className="chat-suggest__item d-flex">{item.text}</div>;
}
}
const Row = (row) => {
return (
<div className="chat-suggest__row d-flex">
{row.map((item, i) => (
<Suggest item={item} key={i} />
))}
</div>
);
};
const Suggest = (item) => {
return <div className="chat-suggest__row--item d-flex">{item.text}</div>;
};

Loading…
Cancel
Save