Skip to content

Commit 96b8e7d

Browse files
author
Rajat
committed
refactor: remove unused TOAST_TITLE_SUCCESS import and adjust whitespace in SSO-related code.
1 parent 02f43ca commit 96b8e7d

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

apps/web/app/(with-contexts)/(with-layout)/login/login-form.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ export default function LoginForm({
313313
variant="outline"
314314
onClick={async () => {
315315
await authClient.signIn.sso({
316-
providerId:
317-
ssoProvider.providerId,
316+
providerId: ssoProvider.providerId,
318317
callbackURL: "/dashboard",
319318
});
320319
}}

apps/web/components/admin/settings/tabs/miscellaneous.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
LOGIN_METHODS_CARD_DESCRIPTION,
2222
LOGIN_METHODS_HEADER,
2323
TOAST_TITLE_ERROR,
24-
TOAST_TITLE_SUCCESS,
2524
} from "@ui-config/strings";
2625
import { useContext, useEffect, useState } from "react";
2726
import {
@@ -101,7 +100,6 @@ export default function MiscellaneousTab() {
101100
loadApiKeys();
102101
}, []);
103102

104-
105103
const removeApikey = async (keyId: string) => {
106104
const query = `
107105
mutation {

apps/web/graphql/settings/logic.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ export const updateSSOProvider = async ({
279279
},
280280
);
281281

282-
ctx.subdomain.settings.ssoTrustedDomain = new URL(
283-
entryPoint,
284-
).origin;
282+
ctx.subdomain.settings.ssoTrustedDomain = new URL(entryPoint).origin;
285283
(ctx.subdomain as any).markModified("settings");
286284
await (ctx.subdomain as any).save();
287285

0 commit comments

Comments
 (0)