Skip to content

Commit 9fb44b9

Browse files
committed
Merge branch '@invertase/publish-artifacts' of https://github.com/firebase/firebaseui-web into @invertase/publish-artifacts
2 parents 18fe144 + 98f8bb4 commit 9fb44b9

File tree

7 files changed

+26
-6
lines changed

7 files changed

+26
-6
lines changed

examples/shadcn/firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"hosting": {
3-
"site": "fir-ui-shadcn",
3+
"site": "fir-ui-2025-shadcn",
44
"public": "dist",
55
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
66
"rewrites": [

examples/shadcn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview",
11-
"deploy": "pnpm run build && firebase deploy --only hosting:fir-ui-shadcn",
11+
"deploy": "pnpm run build && firebase deploy --only hosting:fir-ui-2025-shadcn",
1212
"shadcn:add-all": "tsx add-all.ts"
1313
},
1414
"dependencies": {

examples/shadcn/src/screens/oauth-screen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
"use client";
1717

18+
import { useState } from "react";
1819
import { GoogleSignInButton } from "@/components/google-sign-in-button";
1920
import { FacebookSignInButton } from "@/components/facebook-sign-in-button";
2021
import { AppleSignInButton } from "@/components/apple-sign-in-button";

examples/shadcn/src/screens/sign-in-auth-screen-w-handlers.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ export default function SignInAuthScreenWithHandlersPage() {
2222
const navigate = useNavigate();
2323
return (
2424
<SignInAuthScreen
25+
onSignIn={(credential) => {
26+
navigate("/");
27+
}}
2528
onForgotPasswordClick={() => {
26-
navigate("/screens/forgot-password-auth-screen");
29+
navigate("/screens/forgot-password-screen");
2730
}}
2831
onSignUpClick={() => {
2932
navigate("/screens/sign-up-auth-screen");

examples/shadcn/src/screens/sign-in-auth-screen-w-oauth.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export default function SignInAuthScreenWithOAuthPage() {
3030
return (
3131
<SignInAuthScreen
3232
onSignIn={(credential) => {
33-
console.log(credential);
3433
navigate("/");
3534
}}
3635
>

examples/shadcn/src/screens/sign-in-auth-screen.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@
1616
"use client";
1717

1818
import { SignInAuthScreen } from "@/components/sign-in-auth-screen";
19+
import { useNavigate } from "react-router";
1920

2021
export default function SignInAuthScreenPage() {
21-
return <SignInAuthScreen />;
22+
const navigate = useNavigate();
23+
24+
return (
25+
<SignInAuthScreen
26+
onSignIn={(credential) => {
27+
navigate("/");
28+
}}
29+
/>
30+
);
2231
}

examples/shadcn/src/screens/sign-up-auth-screen.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
"use client";
1717

1818
import { SignUpAuthScreen } from "@/components/sign-up-auth-screen";
19+
import { useNavigate } from "react-router";
1920

2021
export default function SignUpAuthScreenPage() {
21-
return <SignUpAuthScreen />;
22+
const navigate = useNavigate();
23+
return (
24+
<SignUpAuthScreen
25+
onSignUp={(credential) => {
26+
navigate("/");
27+
}}
28+
/>
29+
);
2230
}

0 commit comments

Comments
 (0)