Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: fix element type is invalid error when using icon

Abdullah Attaf1fa32c7f52d
diff --git a/packages/ui/src/components/icon/index.tsx b/packages/ui/src/components/icon/index.tsx
index 12daca8c4..d79e24318 100644
--- a/packages/ui/src/components/icon/index.tsx
+++ b/packages/ui/src/components/icon/index.tsx
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import MDIIcon from "@mdi/react";
+import { Icon as MDIIcon } from "@mdi/react";
import { Theme } from "@notesnook/theme";
import { isThemeColor, SchemeColors } from "@notesnook/theme";
import { Flex, FlexProps } from "@theme-ui/components";