From dcc17375b46d6cbc3678c0432cccd61ef707d253 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Fri, 21 Jul 2023 15:20:27 -0400 Subject: [PATCH] Get rid of modal --- src/client/index.tsx | 1 - src/shared/components/community/sidebar.tsx | 58 +-------------------- src/shared/components/home/login.tsx | 3 -- 3 files changed, 1 insertion(+), 61 deletions(-) diff --git a/src/client/index.tsx b/src/client/index.tsx index ffe52ce8..6978c9c3 100644 --- a/src/client/index.tsx +++ b/src/client/index.tsx @@ -6,7 +6,6 @@ import { UserService } from "../shared/services"; import "bootstrap/js/dist/collapse"; import "bootstrap/js/dist/dropdown"; -import "bootstrap/js/dist/modal"; async function startClient() { initializeSite(window.isoData.site_res); diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index bb800342..065377d0 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -161,7 +161,6 @@ export class Sidebar extends Component { - {this.remoteFetchModal} ); } @@ -257,12 +256,7 @@ export class Sidebar extends Component { if (!UserService.Instance.myUserInfo) { return ( - ); @@ -295,56 +289,6 @@ export class Sidebar extends Component { ); } - get remoteFetchModal() { - return ( -
-
-
-
-

- Subscribe from Remote Instance -

-
-
- - -
- -
-
-
- ); - } - blockCommunity() { const { subscribed, blocked } = this.props.community_view; diff --git a/src/shared/components/home/login.tsx b/src/shared/components/home/login.tsx index 929ed9d0..53a09096 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -60,9 +60,6 @@ async function handleLoginSubmit(i: Login, event: any) { const { hash, pathname, search } = (i.props.history.location.state ?? {}) as Location; - console.log("Login state"); - console.log(i.props.history.location.state); - i.props.history.location.state ? i.props.history.replace({ hash, pathname, search }) : i.props.history.action === "PUSH"