Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
epixieme committed Aug 24, 2024
1 parent 7ea8418 commit 3d8672e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/features/auth/components/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ interface Props {
handleGoogleAuth?: () => void;
}

function LoginForm({ isLoading, onLogin, onForgotPasswordClick, handleGoogleAuth }: Props) {
const devMode = localStorage.getItem('devMode') === 'true';

function LoginForm({ isLoading, onLogin, onForgotPasswordClick }: Props) {
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');

Expand All @@ -36,15 +34,15 @@ function LoginForm({ isLoading, onLogin, onForgotPasswordClick, handleGoogleAuth
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'space-between', alignItems: 'center', marginTop: 30, gap: 20 }}>
<CmButton2 text="Log In" type="submit" isLoading={isLoading} disabled={!email || !password} onClick={handleSubmit} />

{devMode && (
{/* {devMode && (
<CmButton2
text="Log In with Google"
isLoading={isLoading}
onClick={handleGoogleAuth}
startIcon={<img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/google/google-original.svg" style={{ width: 24, height: 24 }} />}
style={{ background: 'white', boxShadow: '0px 2px 3px 0px #0000002B, 0px 0px 3px 0px #00000015', border: 'none' }}
/>
)}
)} */}
</div>
</form>
);
Expand Down

0 comments on commit 3d8672e

Please sign in to comment.