mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-14 08:01:02 -07:00
Update Paid tier specific privacy notice. (#8737)
Co-authored-by: Srinath Padmanabhan <srithreepo@google.com>
This commit is contained in:
committed by
GitHub
parent
bcc4d81d19
commit
4ef46e441c
@@ -7,7 +7,7 @@
|
|||||||
import { Box, Newline, Text } from 'ink';
|
import { Box, Newline, Text } from 'ink';
|
||||||
import { RadioButtonSelect } from '../components/shared/RadioButtonSelect.js';
|
import { RadioButtonSelect } from '../components/shared/RadioButtonSelect.js';
|
||||||
import { usePrivacySettings } from '../hooks/usePrivacySettings.js';
|
import { usePrivacySettings } from '../hooks/usePrivacySettings.js';
|
||||||
import { CloudPaidPrivacyNotice } from './CloudPaidPrivacyNotice.js';
|
|
||||||
import type { Config } from '@google/gemini-cli-core';
|
import type { Config } from '@google/gemini-cli-core';
|
||||||
import { theme } from '../semantic-colors.js';
|
import { theme } from '../semantic-colors.js';
|
||||||
import { useKeypress } from '../hooks/useKeypress.js';
|
import { useKeypress } from '../hooks/useKeypress.js';
|
||||||
@@ -26,7 +26,10 @@ export const CloudFreePrivacyNotice = ({
|
|||||||
|
|
||||||
useKeypress(
|
useKeypress(
|
||||||
(key) => {
|
(key) => {
|
||||||
if (privacyState.error && key.name === 'escape') {
|
if (
|
||||||
|
(privacyState.error || privacyState.isFreeTier === false) &&
|
||||||
|
key.name === 'escape'
|
||||||
|
) {
|
||||||
onExit();
|
onExit();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -49,7 +52,19 @@ export const CloudFreePrivacyNotice = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (privacyState.isFreeTier === false) {
|
if (privacyState.isFreeTier === false) {
|
||||||
return <CloudPaidPrivacyNotice onExit={onExit} />;
|
return (
|
||||||
|
<Box flexDirection="column" marginY={1}>
|
||||||
|
<Text bold color={theme.text.accent}>
|
||||||
|
Gemini Code Assist Privacy Notice
|
||||||
|
</Text>
|
||||||
|
<Newline />
|
||||||
|
<Text>
|
||||||
|
https://developers.google.com/gemini-code-assist/resources/privacy-notices
|
||||||
|
</Text>
|
||||||
|
<Newline />
|
||||||
|
<Text color={theme.text.secondary}>Press Esc to exit.</Text>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const items = [
|
const items = [
|
||||||
|
|||||||
Reference in New Issue
Block a user