diff options
Diffstat (limited to 'vnext/src/components/Spinner.js')
-rw-r--r-- | vnext/src/components/Spinner.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/src/components/Spinner.js b/vnext/src/components/Spinner.js index fffa2c80..c1d42db4 100644 --- a/vnext/src/components/Spinner.js +++ b/vnext/src/components/Spinner.js @@ -1,7 +1,7 @@ import React from 'react'; import ContentLoader from 'react-content-loader'; -export default function Spinner(props) { +function Spinner(props) { return ( <div className="msg-cont"> <ContentLoader @@ -21,6 +21,8 @@ export default function Spinner(props) { ); } +export default React.memo(Spinner); + export function ChatSpinner(props) { return ( <ContentLoader |