diff options
author | Vitaly Takmazov | 2019-02-21 00:20:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | d01d3369318b79f4f38820ef8c48344a6b082aff (patch) | |
tree | 3ec47c71215ff8e514646c5bb695cbc5df286403 /vnext/src/components/Spinner.js | |
parent | e39818079a05cdd7cfc4744e972ce87105e1ff87 (diff) |
More pure components
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 |