Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rain1024 committed Oct 26, 2024
1 parent 6b3f6f0 commit 68b3db2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/languagesv2/languages-v2-web/src/pages/Nav.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { GoogleOAuthProvider, GoogleLogin } from '@react-oauth/google';
import { GoogleOAuthProvider } from '@react-oauth/google';

const Nav: React.FC = () => {
const handleGoogleLoginSuccess = (response: any) => {
console.log('Google login successful:', response);
// Handle the Google login response here, e.g., send the token to your backend for verification.
};
// const handleGoogleLoginSuccess = (response: any) => {
// console.log('Google login successful:', response);
// // Handle the Google login response here, e.g., send the token to your backend for verification.
// };

const handleGoogleLoginError = () => {
console.log('Google login failed');
};
// const handleGoogleLoginError = () => {
// console.log('Google login failed');
// };

return (
<GoogleOAuthProvider clientId="1019763033940-c42boad0dt819pddir1g4jelvarm8802.apps.googleusercontent.com">
Expand Down

0 comments on commit 68b3db2

Please sign in to comment.