Skip to content

Commit

Permalink
Added firebase keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmesh-hemaram committed Aug 20, 2024
1 parent b1c0c83 commit 4e449aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
32 changes: 17 additions & 15 deletions apps/acf-options-page/src/modal/settings/google-sheets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ function SettingGoogleSheets() {
}
}, [user, grantedScopes, scope, dispatch]);

if (['DEV', 'BETA'].includes(process.env.NX_PUBLIC_VARIANT || '')) {
return (
<div className='d-flex flex-column align-items-start'>
<Alert>
<Alert.Heading>Use Stable Versions for Google Sheets Features.</Alert.Heading>
For optimal performance and reliability in Google Sheets, it's recommended to utilize <Alert.Link href={`https://stable.getautoclicker.com`}>stable</Alert.Link> 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!.
</Alert>
</div>
);
}

if (!user) {
return (
<p>
Expand All @@ -44,21 +57,10 @@ function SettingGoogleSheets() {
if (!grantedScopes?.includes(scope)) {
return (
<div className='d-flex flex-column align-items-start'>
{['DEV', 'BETA'].includes(process.env.NX_PUBLIC_VARIANT || '') ? (
<Alert>
<Alert.Heading>Use Stable Versions for Google Sheets Features.</Alert.Heading>
For optimal performance and reliability in Google Sheets, it's recommended to utilize <Alert.Link href={`https://stable.getautoclicker.com`}>stable</Alert.Link> 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!.
</Alert>
) : (
<>
<b className='mx-3 text-muted'>Connect with Google Sheets</b>
<Button variant='link' onClick={connect} data-testid='google-sheets-connect' disabled={['DEV', 'BETA'].includes(process.env.NX_PUBLIC_VARIANT || '')}>
<img src={theme === 'light' ? GoogleSignInLight : GoogleSignInDark} alt='Logo' />
</Button>
</>
)}
<b className='mx-3 text-muted'>Connect with Google Sheets</b>
<Button variant='link' onClick={connect} data-testid='google-sheets-connect'>
<img src={theme === 'light' ? GoogleSignInLight : GoogleSignInDark} alt='Logo' />
</Button>
</div>
);
}
Expand Down

0 comments on commit 4e449aa

Please sign in to comment.