Skip to content

Commit

Permalink
feat(client): sort hooks in login container
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozwiaczek committed Mar 2, 2021
1 parent c72980a commit 0ef3422
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/containers/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ import {
import { LoginInputs } from './Login.types';

const Login = () => {
const auth = useAuth();
const history = useHistory();
const [loading, setLoading] = useState(false);
const showSnackbar = useSnackbar();
const [loading, setLoading] = useState(false);
const { register, handleSubmit, errors, reset, trigger } = useForm<LoginInputs>({
mode: 'onBlur',
});
const auth = useAuth();

if (!auth) {
return null;
return null; // TODO: add page loader
}

const onSubmit = async (values: LoginInputs) => {
Expand Down

0 comments on commit 0ef3422

Please sign in to comment.