Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vklimontovich committed Feb 27, 2024
1 parent cb3566b commit 07c7fc6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion webapps/console/components/Redirect/Redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect } from "react";
import { useRouter } from "next/router";
import { LoadingAnimation } from "../GlobalLoader/GlobalLoader";

export const Redirect: React.FC<{ href: string, title?: string }> = ({ title, href }) => {
export const Redirect: React.FC<{ href: string; title?: string }> = ({ title, href }) => {
const router = useRouter();
useEffect(() => {
router.push(href);
Expand Down
1 change: 0 additions & 1 deletion webapps/console/lib/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export function PromptContextProvider({ children }) {
const [okText, setOkText] = useState<ReactNode>(null);
const [initialValue, setInitialValue] = useState<string | undefined>();


return (
<PromptContext.Provider
value={{
Expand Down
4 changes: 2 additions & 2 deletions webapps/console/lib/nextauth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const crypto = require("crypto");
const log = getServerLog("auth");

export const githubLoginEnabled = !!process.env.GITHUB_CLIENT_ID;
export const credentialsLoginEnabled = isTruish(process.env.ENABLE_CREDETIALS_LOGIN) || !!(process.env.SEED_USER_EMAIL && process.env.SEED_USER_PASSWORD);

export const credentialsLoginEnabled =
isTruish(process.env.ENABLE_CREDETIALS_LOGIN) || !!(process.env.SEED_USER_EMAIL && process.env.SEED_USER_PASSWORD);

const githubProvider = githubLoginEnabled
? GithubProvider({
Expand Down
10 changes: 2 additions & 8 deletions webapps/console/pages/signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@ function JitsuLogo() {
);
}



function CredentialsForm({}) {
const lastUsedLogin = localStorage.getItem("last-used-login-email") || undefined;
const {
data,
isLoading,
error,
} = useQuery(["next-auth-csrfToken"], async () => {
const { data, isLoading, error } = useQuery(["next-auth-csrfToken"], async () => {
return {
csrfToken: await getCsrfToken(),
};
Expand Down Expand Up @@ -65,7 +59,7 @@ function CredentialsForm({}) {
<Input disabled={loading} id="password" size="large" required type="password" name="password" />
</div>
<Button htmlType="submit" className="w-full" type="primary" disabled={loading}>
{loading ? 'Preparing login form...' : 'Sign In'}
{loading ? "Preparing login form..." : "Sign In"}
</Button>
</form>
);
Expand Down

0 comments on commit 07c7fc6

Please sign in to comment.