mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 02:12:38 +01:00
settings modal close button works
This commit is contained in:
parent
1634a98e03
commit
686431e900
@ -1,7 +1,7 @@
|
|||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components";
|
||||||
import { ModalProps } from "../../controllers/modals";
|
import { ModalProps, modalController } from "../../controllers/modals";
|
||||||
import { useAppStore } from "../../stores/AppStore";
|
import { useAppStore } from "../../stores/AppStore";
|
||||||
import { isTauri } from "../../utils/Utils";
|
import { isTauri } from "../../utils/Utils";
|
||||||
import { APP_VERSION, GIT_BRANCH, GIT_REVISION, REPO_URL } from "../../utils/revison";
|
import { APP_VERSION, GIT_BRANCH, GIT_REVISION, REPO_URL } from "../../utils/revison";
|
||||||
@ -247,11 +247,7 @@ export const SettingsModal = observer(({ ...props }: ModalProps<"settings">) =>
|
|||||||
<CloseContainer>
|
<CloseContainer>
|
||||||
<CloseContainerInner></CloseContainerInner>
|
<CloseContainerInner></CloseContainerInner>
|
||||||
<CloseContainerWrapper>
|
<CloseContainerWrapper>
|
||||||
<CloseButtonWrapper
|
<CloseButtonWrapper onClick={() => modalController.close()}>
|
||||||
onClick={() => {
|
|
||||||
console.log("Close modal");
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Icon icon="mdiClose" size="18px" />
|
<Icon icon="mdiClose" size="18px" />
|
||||||
</CloseButtonWrapper>
|
</CloseButtonWrapper>
|
||||||
</CloseContainerWrapper>
|
</CloseContainerWrapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user