master
alex 2024-01-14 11:12:52 +01:00
parent 03bcd07341
commit 047df669c9
1 changed files with 3 additions and 8 deletions

View File

@ -8,6 +8,8 @@ export default function StoreCalendar() {
const { t } = useTranslation();
useEffect(() => {
console.log("hello", Constants.GOOGLE_CLIENT_ID);
hello.init(
{
google: Constants.GOOGLE_CLIENT_ID,
@ -32,14 +34,7 @@ export default function StoreCalendar() {
<Button
onClick={() => {
hello("google")
.login(
{
scope: "https://www.googleapis.com/auth/calendar",
},
(e) => {
console.log("login error", e);
}
)
.login()
.then(
() => {
console.log("Login successful");