perf: add memo to react components

This commit is contained in:
SethBurkart123
2024-02-04 21:13:56 +11:00
parent 629a88a463
commit f5dfba2872
8 changed files with 25 additions and 15 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { memo } from 'react';
import { useSettingsContext } from '../SettingsContext';
const PickerSwatch = () => {
@@ -16,4 +17,4 @@ const PickerSwatch = () => {
);
};
export default PickerSwatch;
export default memo(PickerSwatch);