Skip to content

Commit acc79b8

Browse files
authored
Merge pull request #117 from njxue/restructure-fe
Re-organize frontend folders
2 parents dae472d + 9b24c18 commit acc79b8

File tree

79 files changed

+113
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+113
-239
lines changed

frontend/src/presentation/components/QuestionCard.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.
File renamed without changes.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import styles from './AuthLogo.module.css';
1+
import styles from "./AuthLogo.module.css";
22
import { Card } from "antd";
3-
import PeerPrepLogo from '../../assets/images/PeerPrepLogo.png';
4-
import { useLocation } from 'react-router-dom';
5-
import { MESSAGES } from 'presentation/utils/constants';
6-
import { SignInSignUpButton } from './buttons/SignInSignUpButton';
3+
import PeerPrepLogo from "../../../assets/images/PeerPrepLogo.png"
4+
import { useLocation } from "react-router-dom";
5+
import { MESSAGES } from "presentation/utils/constants";
6+
import { SignInSignUpButton } from "../common/buttons/SignInSignUpButton";
77

88
export const AuthLogo: React.FC = () => {
99
const location = useLocation();
10-
const isRegister = location.pathname.includes('register');
10+
const isRegister = location.pathname.includes("register");
1111
return (
1212
<div className={styles.cardWrapper}>
1313
<Card className={styles.card}>
1414
<div className={styles.content}>
1515
<div>
1616
<img src={PeerPrepLogo} alt="PeerPrep Logo" width="60%" />
1717
</div>
18-
18+
1919
<div className={styles.promptContainer}>
20-
<h3 className={styles.h3}>{isRegister ? MESSAGES.SIGN_IN_PROMPT : MESSAGES.SIGN_UP_PROMPT}</h3>
20+
<h3 className={styles.h3}>{isRegister ? MESSAGES.SIGN_IN_PROMPT : MESSAGES.SIGN_UP_PROMPT}</h3>
2121
<SignInSignUpButton />
2222
</div>
2323
</div>
2424
</Card>
2525
</div>
2626
);
27-
};
27+
};
File renamed without changes.
File renamed without changes.
File renamed without changes.

frontend/src/presentation/components/SignUpForm/SignUpForm.tsx renamed to frontend/src/presentation/components/auth/SignUpForm/SignUpForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useForm } from "antd/es/form/Form";
99
import { IUserRegisterInput } from "domain/users/IUser";
1010
import { toast } from "react-toastify";
1111
import { getEqualityValidator, getPasswordStrengthValidator, validateMessages } from "presentation/utils/formUtils";
12-
import { PasswordInputLabel } from "../common/PasswordInputLabel/PasswordInputLabel";
12+
import { PasswordInputLabel } from "presentation/components/common/PasswordInputLabel/PasswordInputLabel";
1313

1414
export const SignUpForm: React.FC = () => {
1515
const [form] = useForm();
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)