Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/api/http/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
export {
getLoginUrl,
completeLogin,
getCurrentUserInfo,
getUserInfoByAuthingId,
deleteGitHubAccount,
deleteGitLabAccount,
addGitHubClassicToken,
addGitLabClassicToken,
setUserAPIKey,
authApi,
} from "./login";

export {
getSupabaseAuthClient,
signInWithSupabase,
Expand All @@ -31,5 +18,3 @@ export {
type AuthState,
type TokenResponse as SecureTokenResponse,
} from "./secure";

export { default } from "./login";
138 changes: 0 additions & 138 deletions src/api/http/auth/login.ts

This file was deleted.

19 changes: 5 additions & 14 deletions src/modules/shared/layouts/GlobalModals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import { useAtomValue } from "jotai";
import React, { Suspense, useEffect, useState } from "react";

import { componentIssueModalOpenAtom } from "@src/store/ui/overlayAtom";
import { loginModalVisibleAtom } from "@src/store/ui/uiAtom";

const LoginModal = React.lazy(
() => import("@/src/scaffold/ModalSystem/variants/Login")
);
const ComponentIssueModalProvider = React.lazy(() =>
import("@src/modules/shared/DevTools/ComponentIssueModal").then((module) => ({
default: module.ComponentIssueModalProvider,
Expand Down Expand Up @@ -43,13 +39,8 @@ const ComponentIssueModalLoader: React.FC = () => {
return <ComponentIssueModalProvider />;
};

export const GlobalModals: React.FC = () => {
const loginModalVisible = useAtomValue(loginModalVisibleAtom);

return (
<Suspense fallback={null}>
{loginModalVisible && <LoginModal />}
<ComponentIssueModalLoader />
</Suspense>
);
};
export const GlobalModals: React.FC = () => (
<Suspense fallback={null}>
<ComponentIssueModalLoader />
</Suspense>
);
2 changes: 0 additions & 2 deletions src/scaffold/ModalSystem/component-modal-0129.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Used extensively throughout the app for modals:

- `src/components/DeleteModal/index.tsx` - Used in delete modal
- `src/components/CreateBranchModal/index.tsx` - Used in create branch modal
- `src/components/LoginModal/index.tsx` - Used in login modal
- `src/components/GlobalModal/component/FormModal.tsx` - Used in form modal
- And many other components

Expand Down Expand Up @@ -363,7 +362,6 @@ interface ConfirmModalConfig {
The ModalSystem includes several specialized modal variants:

- `variants/QuickUpload/` - File upload modal
- `variants/Login/` - Login modal
- `variants/Rename/` - Rename modal
- `variants/AddFunds/` - Add funds modal
- `variants/ContentView/` - Content viewing modal
Expand Down
Loading
Loading