mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: use esbuild-loader & chunk-splitting
This commit is contained in:
1 parent
db9def7917
commit
e67c1c333a
9 files changed
+104
-54
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import _ from 'lodash';
|
||||
import { connect } from 'react-redux';
|
||||
import TimeAgo from 'timeago-react';
|
||||
import moment from 'dayjs';
|
||||
@@ -55,7 +54,7 @@ export default connect(mapStateToProps)(class MessagePadDialogueContentContainer
|
||||
|
||||
renderInner() {
|
||||
if (this.props.activeId === null) return [];
|
||||
return _.map(this.props.item.messages, (msg) => (
|
||||
return this.props.item.messages.map((msg) => (
|
||||
<Message
|
||||
key={msg._id}
|
||||
isSelf={msg.from === UserContext._id}
|
||||
|
||||
Reference in new issue
Block a user