From 4e449aa756b03fe80c45db69091228369a22d083 Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Tue, 20 Aug 2024 19:27:41 +0530 Subject: [PATCH] Added firebase keys --- .github/workflows/deploy.yml | 3 ++ .../src/modal/settings/google-sheets.tsx | 32 ++++++++++--------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f5ba130c..8d022dbd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -66,6 +66,9 @@ jobs: NX_PUBLIC_GOOGLE_ANALYTICS_ID: ${{vars.NX_PUBLIC_GOOGLE_ANALYTICS_ID}} NX_PUBLIC_GOOGLE_ADS_SLOT: ${{vars.NX_PUBLIC_GOOGLE_ADS_SLOT}} NX_PUBLIC_GOOGLE_ADS_CLIENT: ${{vars.NX_PUBLIC_GOOGLE_ADS_CLIENT}} + NX_PUBLIC_FIREBASE_API_KEY: ${{vars.NX_PUBLIC_FIREBASE_API_KEY}} + NX_PUBLIC_FIREBASE_DATABASE_URL: ${{vars.NX_PUBLIC_FIREBASE_DATABASE_URL}} + NX_PUBLIC_FIREBASE_PROJECT_ID: ${{vars.NX_PUBLIC_FIREBASE_PROJECT_ID}} UNINSTALL_URL: ${{vars.UNINSTALL_URL}} TRACKING_ID: ${{vars.TRACKING_ID}} FUNCTION_URL: ${{vars.FUNCTION_URL}} diff --git a/apps/acf-options-page/src/modal/settings/google-sheets.tsx b/apps/acf-options-page/src/modal/settings/google-sheets.tsx index cdfe8544..d3c94bd1 100644 --- a/apps/acf-options-page/src/modal/settings/google-sheets.tsx +++ b/apps/acf-options-page/src/modal/settings/google-sheets.tsx @@ -29,6 +29,19 @@ function SettingGoogleSheets() { } }, [user, grantedScopes, scope, dispatch]); + if (['DEV', 'BETA'].includes(process.env.NX_PUBLIC_VARIANT || '')) { + return ( +
+ + Use Stable Versions for Google Sheets Features. + For optimal performance and reliability in Google Sheets, it's recommended to utilize stable versions of its features. + These versions undergo thorough testing to ensure seamless functionality, providing you with a dependable platform for your tasks. By prioritizing stability, you can enhance your + productivity and minimize the risk of encountering unexpected issues. If you need assistance or guidance on leveraging Google Sheets effectively, feel free to reach out for support!. + +
+ ); + } + if (!user) { return (

@@ -44,21 +57,10 @@ function SettingGoogleSheets() { if (!grantedScopes?.includes(scope)) { return (

- {['DEV', 'BETA'].includes(process.env.NX_PUBLIC_VARIANT || '') ? ( - - Use Stable Versions for Google Sheets Features. - For optimal performance and reliability in Google Sheets, it's recommended to utilize stable versions of its features. - These versions undergo thorough testing to ensure seamless functionality, providing you with a dependable platform for your tasks. By prioritizing stability, you can enhance your - productivity and minimize the risk of encountering unexpected issues. If you need assistance or guidance on leveraging Google Sheets effectively, feel free to reach out for support!. - - ) : ( - <> - Connect with Google Sheets - - - )} + Connect with Google Sheets +
); }