(sheets) Use Google Drive picker and remove sensitive OAuth scope

BREAKING CHANGE: The Google Picker API needs to be enabled in the Google Cloud console. You also need to enable it in
your NEXT_PUBLIC_GOOGLE_API_KEY. You also need to add the drive.file OAuth scope.
This commit is contained in:
Baptiste Arnaud
2023-12-18 15:43:58 +01:00
parent 2dec0b88c2
commit deab1a12e9
23 changed files with 428 additions and 156 deletions

View File

@@ -1,5 +1,5 @@
import { PublicTypebot, PublicTypebotV6, TypebotV6 } from '@typebot.io/schemas'
import { Router, useRouter } from 'next/router'
import { Router } from 'next/router'
import {
createContext,
ReactNode,
@@ -85,7 +85,6 @@ export const TypebotProvider = ({
children: ReactNode
typebotId?: string
}) => {
const { push } = useRouter()
const { showToast } = useToast()
const [is404, setIs404] = useState(false)
@@ -186,7 +185,6 @@ export const TypebotProvider = ({
flush,
isFetchingTypebot,
localTypebot,
push,
setLocalTypebot,
showToast,
typebot,