mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 06:11:16 +00:00
optimized getIcon interface (#2904)
* optimized getIcon interface * optimzied get lib-icon code * repair share-repo bug
This commit is contained in:
@@ -102,8 +102,7 @@ class ReviewListItem extends React.Component {
|
||||
let localTime = moment.utc(item.updated_at).toDate();
|
||||
localTime = moment(localTime).fromNow();
|
||||
|
||||
let size = Utils.isHiDPI() ? 48 : 24;
|
||||
let iconUrl = Utils.getFileIconUrl(fileName, size);
|
||||
let iconUrl = Utils.getFileIconUrl(fileName);
|
||||
|
||||
return (
|
||||
<tr className={this.state.highlight} onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>
|
||||
|
Reference in New Issue
Block a user