Skip to content

Commit

Permalink
fix: do the changes of code review
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarcia-lightit committed Apr 27, 2023
1 parent 0b58790 commit 3edf799
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 146 deletions.
117 changes: 117 additions & 0 deletions apps/eo_web/dist/assets/main-843b8c61.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

117 changes: 0 additions & 117 deletions apps/eo_web/dist/assets/main-f1559378.js

This file was deleted.

6 changes: 3 additions & 3 deletions apps/eo_web/dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"src": "../../packages/ui/src/assets/avatar.svg"
},
"src/main.css": {
"file": "assets/main-cd3ccd42.css",
"file": "assets/main-90f1cf5a.css",
"src": "src/main.css"
},
"src/main.tsx": {
"assets": [
"assets/UploadFile-694e44b5.svg"
],
"css": [
"assets/main-cd3ccd42.css"
"assets/main-90f1cf5a.css"
],
"file": "assets/main-f1559378.js",
"file": "assets/main-843b8c61.js",
"isEntry": true,
"src": "src/main.tsx"
}
Expand Down
7 changes: 7 additions & 0 deletions apps/eo_web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
</head>
<body>
<div id="root"></div>
<script type="application/javascript">
window.data = {}
window.data.const = {

}
</script>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
7 changes: 2 additions & 5 deletions apps/eo_web/src/screens/EmailVerificationLogged.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useMutation } from "@tanstack/react-query";
import axios from "axios";
import { useLocation, useNavigate } from "react-router-dom";
import { toast } from "react-toastify";

Expand All @@ -19,10 +18,8 @@ export const EmailVerificationLogged = () => {
onSuccess: () => {
toast.success("Email resent successfully, please check your inbox");
},
onError: (result) => {
if (axios.isAxiosError(result)) {
} else {
}
onError: () => {
toast.error("An error occurred, please try again later");
},
});

Expand Down
13 changes: 0 additions & 13 deletions apps/eo_web/src/screens/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";

import { LayoutDefault } from "~/layouts/LayoutDefault";
import { ROUTES } from "~/router";
import { useProfileStore } from "~/stores/useProfileStore";

export const Home = () => {
const profile = useProfileStore((state) => state.profile);
const navigate = useNavigate();
useEffect(() => {
if (!profile?.zip) {
navigate(ROUTES.zipCodeValidation);
}
});

return (
<LayoutDefault>
<br />
Expand Down
1 change: 0 additions & 1 deletion apps/eo_web/src/screens/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const newClientSchema = z.object({
.string()
.min(8, { message: "The password must has 8 characters." })
.regex(
//make regex in javascript that has number, uppercase, and lowercase
/(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])/,
"The password must have at least one uppercase letter, one lowercase letter, one number",
),
Expand Down
6 changes: 0 additions & 6 deletions apps/eo_web/src/stores/useProfileStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ export interface Profile {
zip: null | string;
}
export interface Session {
app_release: null | unknown;
app_version: null | unknown;
device: null | unknown;
device_type: null | unknown;
ios_version: null | unknown;
token: string;
vendor_id: null | unknown;
}

export interface ProfileStoreState {
Expand Down

0 comments on commit 3edf799

Please sign in to comment.