From 686431e9000952a0a8675040c1b57364378a3e17 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 17 Jul 2024 16:26:21 -0400 Subject: [PATCH] settings modal close button works --- src/components/modals/SettingsModal.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/modals/SettingsModal.tsx b/src/components/modals/SettingsModal.tsx index 7538ffb..0089a0d 100644 --- a/src/components/modals/SettingsModal.tsx +++ b/src/components/modals/SettingsModal.tsx @@ -1,7 +1,7 @@ import { observer } from "mobx-react-lite"; import { useState } from "react"; import styled, { css } from "styled-components"; -import { ModalProps } from "../../controllers/modals"; +import { ModalProps, modalController } from "../../controllers/modals"; import { useAppStore } from "../../stores/AppStore"; import { isTauri } from "../../utils/Utils"; import { APP_VERSION, GIT_BRANCH, GIT_REVISION, REPO_URL } from "../../utils/revison"; @@ -247,11 +247,7 @@ export const SettingsModal = observer(({ ...props }: ModalProps<"settings">) => - { - console.log("Close modal"); - }} - > + modalController.close()}>