aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Spinner.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-02-21 00:20:21 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitd01d3369318b79f4f38820ef8c48344a6b082aff (patch)
tree3ec47c71215ff8e514646c5bb695cbc5df286403 /vnext/src/components/Spinner.js
parente39818079a05cdd7cfc4744e972ce87105e1ff87 (diff)
More pure components
Diffstat (limited to 'vnext/src/components/Spinner.js')
-rw-r--r--vnext/src/components/Spinner.js4
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