diff options
Diffstat (limited to 'vnext/src/ui/Message.js')
-rw-r--r-- | vnext/src/ui/Message.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js index 83c6fcab..620fe017 100644 --- a/vnext/src/ui/Message.js +++ b/vnext/src/ui/Message.js @@ -1,4 +1,4 @@ -import React, { useEffect, useRef } from 'react'; +import { memo, useEffect, useRef } from 'react'; import { Link } from 'react-router-dom'; import moment from 'moment'; @@ -130,7 +130,7 @@ function Tags({ data, user }) { ); } -const TagsList = React.memo(Tags); +const TagsList = memo(Tags); function Recommends({ forMessage }) { const { likes, recommendations } = forMessage; @@ -148,4 +148,4 @@ function Recommends({ forMessage }) { ) || null; } -const Recommendations = React.memo(Recommends); +const Recommendations = memo(Recommends); |