@@ -14,6 +14,7 @@ import {
1414 showNoticeNotification ,
1515 showErrorNotification ,
1616} from "../../../stores/notifications" ;
17+ import { Button } from "../../common/Button" ;
1718import { H3 } from "../../common/Headers" ;
1819import { Separator } from "../../common/Separator" ;
1920
@@ -82,20 +83,22 @@ export function Login(): JSXElement {
8283 class = "p-0"
8384 />
8485 < div class = "grid grid-cols-2 gap-4" >
85- < button
86- type = "button"
86+ < Button
87+ fa = { {
88+ icon : "fa-google" ,
89+ variant : "brand" ,
90+ } }
8791 disabled = { ! getLoginPageInputsEnabled ( ) }
8892 onClick = { handleSignInWithGoogle }
89- >
90- < i class = "fab fa-google" > </ i >
91- </ button >
92- < button
93- type = "button"
93+ />
94+ < Button
95+ fa = { {
96+ icon : "fa-github" ,
97+ variant : "brand" ,
98+ } }
9499 disabled = { ! getLoginPageInputsEnabled ( ) }
95100 onClick = { handleSignInWithGitHub }
96- >
97- < i class = "fab fa-github" > </ i >
98- </ button >
101+ />
99102 </ div >
100103 < form class = "grid w-full gap-2" onSubmit = { handleSignIn } >
101104 < Separator text = "or" />
@@ -128,24 +131,23 @@ export function Login(): JSXElement {
128131 < div > remember me</ div >
129132 </ label >
130133 </ div >
131- < button
134+ < Button
132135 type = "submit"
133136 class = "signIn"
134137 disabled = { ! getLoginPageInputsEnabled ( ) }
135- >
136- < i class = "fas fa-sign-in-alt" > </ i >
137- sign in
138- </ button >
138+ fa = { {
139+ icon : "fa-sign-in-alt" ,
140+ } }
141+ text = "sign in"
142+ />
139143 </ form >
140- < button
141- type = "button "
142- class = "text text-xs"
143- style = { { "justify-content" : "right" } }
144+ < Button
145+ variant = "text "
146+ class = "w-max justify-self-end text-xs"
147+ text = "forgot password?"
144148 onClick = { ( ) => ForgotPasswordModal . show ( ) }
145149 disabled = { ! getLoginPageInputsEnabled ( ) }
146- >
147- forgot password?
148- </ button >
150+ />
149151 </ div >
150152 ) ;
151153}
0 commit comments