Skip to content

Commit

Permalink
resolved merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanger2000 committed Mar 30, 2023
2 parents f2c3b9f + 864af74 commit 8f5bab8
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions src/components/errors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { getError, getShowErrors } from '../features/selectors'
import { faClose } from '@fortawesome/pro-regular-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import Modal from 'react-modal'
import { NoAuthGlobalOldRateLimitError, NotLoggedInError } from '../utils'
import { OpenAILoginPanel } from './settingsPane'
import { NoAuthGlobalOldRateLimitError, NotLoggedInError, OpenAIError } from '../utils';
import { CursorLogin, OpenAILoginPanel } from './settingsPane';
import { signInCursor, upgradeCursor } from '../features/tools/toolSlice';

const customStyles = {
overlay: {
Expand Down Expand Up @@ -102,12 +103,14 @@ export function ErrorPopup() {
<FontAwesomeIcon icon={faClose} />
</div>
</div>
<div className="signup__body">
<div className="signup__title">Cursor</div>
<div className="signup__module">
<div className="signup__subtitle">
To avoid abuse on our backend, we ask that you
login in to use the AI features
<div className="signup__body">
<div className="signup__title">Cursor</div>
<div className="signup__module">
<div className="signup__subtitle">To avoid abuse on our backend, we ask that you login in to use the AI features</div>
<div className="signup__signup_button" onClick={() => dispatch(signInCursor(null))}>Log in</div>

<div className="signup__signup_button" onClick={() => dispatch(signInCursor(null))}>Sign up</div>

</div>
<div className="signup__signup_button">Log in</div>
<div className="signup__signup_button">Sign up</div>
Expand Down Expand Up @@ -145,14 +148,12 @@ export function ErrorPopup() {
<FontAwesomeIcon icon={faClose} />
</div>
</div>
<div className="signup__body">
<div className="signup__title">
Free tier limit exceeded
</div>
<div className="signup__module">
<div className="signup__subtitle">
If you've enjoyed using Cursor, please consider
subscribing to one of our paid plans
<div className="signup__body">
<div className="signup__title">Free tier limit exceeded</div>
<div className="signup__module">
<div className="signup__subtitle">If you've enjoyed using Cursor, please consider subscribing to one of our paid plans</div>
<div className="signup__signup_button" onClick={() => dispatch(upgradeCursor(null))}>Upgrade</div>

</div>
<div className="signup__signup_button">Upgrade</div>
</div>
Expand Down Expand Up @@ -183,7 +184,7 @@ export function ErrorPopup() {
<div className="errorPopup">
<div className="errorPopup__title">
<div className="errorPopup__title_text">
{/* {error.title} */}
{error.title}
</div>
<div
className="errorPopup__title_close"
Expand All @@ -193,7 +194,7 @@ export function ErrorPopup() {
</div>
</div>
<div className="errorPopup__body">
{/* {error.message} */}
{error.message}
<br />
</div>
</div>
Expand Down

0 comments on commit 8f5bab8

Please sign in to comment.