File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed
packages/dashboard-app/src/components/installs/modal/login Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,10 @@ enum AuthMethod {
131131impl Display for AuthMethod {
132132 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
133133 match self {
134- AuthMethod :: BuilderId => write ! ( f, "Use for Free with Builder ID" ) ,
134+ AuthMethod :: BuilderId => write ! ( f, "Use with Builder ID" ) ,
135135 AuthMethod :: Social ( SocialProvider :: Google ) => write ! ( f, "Use with Google" ) ,
136136 AuthMethod :: Social ( SocialProvider :: Github ) => write ! ( f, "Use with GitHub" ) ,
137- AuthMethod :: IdentityCenter => write ! ( f, "Use with Pro license " ) ,
137+ AuthMethod :: IdentityCenter => write ! ( f, "Use with IDC Account " ) ,
138138 }
139139 }
140140}
Original file line number Diff line number Diff line change @@ -294,7 +294,8 @@ export default function LoginModal({ next }: { next: () => void }) {
294294 onClick = { ( ) => {
295295 setLoginMethod ( "deviceCode" ) ;
296296 setLoginState ( "not started" ) ;
297- setError ( null ) ;
297+ setAuthRequestId ( undefined ) ;
298+ Auth . cancelPkceAuthorization ( ) . catch ( console . error ) ;
298299 } }
299300 >
300301 Login with Device Code
@@ -355,12 +356,12 @@ export default function LoginModal({ next }: { next: () => void }) {
355356 : ( ) => setTab ( "builderId" )
356357 }
357358 signInText = {
358- completedOnboarding
359- ? tab === "builderId"
360- ? "Login with Builder ID"
361- : "Login with IDC"
362- : "Sign in"
363- }
359+ completedOnboarding
360+ ? tab === "builderId"
361+ ? "Login with Builder ID"
362+ : "Login with IDC"
363+ : "Sign in"
364+ }
364365 />
365366 < Button
366367 variant = "ghost"
@@ -566,13 +567,13 @@ export default function LoginModal({ next }: { next: () => void }) {
566567 ? ( ) => setTab ( "iam" )
567568 : ( ) => setTab ( "builderId" )
568569 }
569- signInText = {
570- completedOnboarding
571- ? tab === "builderId"
572- ? "Login with Builder ID"
573- : "Login with IDC"
574- : "Sign in"
575- }
570+ signInText = {
571+ completedOnboarding
572+ ? tab === "builderId"
573+ ? "Login with Builder ID"
574+ : "Login with IDC"
575+ : "Sign in"
576+ }
576577 />
577578 ) }
578579 </ div >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function BuilderIdTab({
3939 variant = { "ghost" }
4040 onClick = { toggleTab }
4141 >
42- < span className = "text-xs" > Use with Pro license </ span >
42+ < span className = "text-xs" > Use with IDC Account </ span >
4343 </ Button >
4444 </ div >
4545 ) ;
@@ -232,7 +232,7 @@ function IamTab({
232232 variant = { "ghost" }
233233 onClick = { toggleTab }
234234 >
235- < span className = "text-xs" > Use for Free with Builder ID</ span >
235+ < span className = "text-xs" > Use with Builder ID</ span >
236236 </ Button >
237237 </ div >
238238 </ div >
You can’t perform that action at this time.
0 commit comments