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 -2
View File
@@ -1,4 +1,4 @@
import { useEffect, useState } from "react";
import { memo, useEffect, useState } from "react";
import themesList from '../assets/themes';
import { listThemes, disableTheme, downloadTheme, setTheme, deleteTheme } from "../hooks/ThemeManagment";
@@ -171,4 +171,4 @@ const ThemeSelector = ({ selectedType, setSelectedType, isEditMode }: ThemeSelec
);
};
export default ThemeSelector;
export default memo(ThemeSelector);