Skip to content

Commit

Permalink
Register with IDE instead of the Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlashAccount committed Jan 22, 2025
1 parent 3587ca2 commit a1db1e0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/gui/src/dashboard/pages/authentication/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @file Login component responsible for rendering and interactions in sign in flow. */
import * as router from 'react-router-dom'

import { CLOUD_DASHBOARD_DOMAIN } from 'enso-common'
import { isOnElectron } from 'enso-common/src/detect'

import { DASHBOARD_PATH, FORGOT_PASSWORD_PATH, REGISTRATION_PATH } from '#/appUtils'
Expand Down Expand Up @@ -103,13 +102,7 @@ export default function Login() {
<Form.FieldValue form={form} name="email">
{(email) => (
<Link
openInBrowser={isElectron}
to={(() => {
const newQuery = new URLSearchParams({ email }).toString()
return isElectron ?
`https://${CLOUD_DASHBOARD_DOMAIN}${REGISTRATION_PATH}?${newQuery}`
: `${REGISTRATION_PATH}?${newQuery}`
})()}
to={`${REGISTRATION_PATH}?${new URLSearchParams({ email }).toString()}`}
icon={CreateAccountIcon}
text={getText('dontHaveAnAccount')}
/>
Expand Down

0 comments on commit a1db1e0

Please sign in to comment.