Skip to content

Commit 12e5b34

Browse files
Fix: keep changes scoped to examples only
1 parent 9c3f6cd commit 12e5b34

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

  • examples/sdk-snapgrid/src/components/Navbar

‎examples/sdk-snapgrid/src/components/Navbar/Navbar.tsx‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,8 @@ export const Navbar: React.FC<NavbarProps> = ({ onUploadClick, onSearch, searchV
9292
{!user ? (
9393
<button
9494
className={styles.loginBtn}
95-
onClick={async () => {
96-
try {
97-
await sdk.auth.loginWithProvider("google");
98-
99-
setTimeout(async () => {
100-
const currentUser = await sdk.auth.getUser();
101-
setUser(currentUser);
102-
}, 1000);
103-
} catch (err) {
104-
console.error(err);
105-
alert("Login failed");
106-
}
95+
onClick={() => {
96+
alert("Login is not available in this SDK yet");
10797
}}
10898
>
10999
Login

0 commit comments

Comments
 (0)