diff --git a/src/components/errors.tsx b/src/components/errors.tsx index ee579b0..92a3e8c 100644 --- a/src/components/errors.tsx +++ b/src/components/errors.tsx @@ -6,6 +6,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import Modal from 'react-modal' import { NoAuthGlobalOldRateLimitError, NotLoggedInError, OpenAIError } from '../utils'; import { CursorLogin, OpenAILoginPanel } from './settingsPane'; +import { signInCursor, upgradeCursor } from '../features/tools/toolSlice'; const customStyles = { overlay: { @@ -109,8 +110,10 @@ export function ErrorPopup() {
Cursor
To avoid abuse on our backend, we ask that you login in to use the AI features
-
Log in
-
Sign up
+
dispatch(signInCursor(null))}>Log in
+ +
dispatch(signInCursor(null))}>Sign up
+
Or enter your OpenAI API key
@@ -148,7 +151,8 @@ export function ErrorPopup() {
Free tier limit exceeded
If you've enjoyed using Cursor, please consider subscribing to one of our paid plans
-
Upgrade
+
dispatch(upgradeCursor(null))}>Upgrade
+
Or enter your OpenAI API key to continue using the AI features at-cost
@@ -174,7 +178,7 @@ export function ErrorPopup() {
-{/* {error.title} */} + {error.title}
-{/* {error.message} */} + {error.message}