Skip to content

Commit

Permalink
renamed login modal css file
Browse files Browse the repository at this point in the history
  • Loading branch information
qiandrewj committed Dec 26, 2024
1 parent 9bc7d3e commit d040bbd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
3 changes: 1 addition & 2 deletions client/src/modules/Course/Components/LoginModal.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react';

import styles from '../Styles/AnonymousWarning.module.css';
import styles from '../Styles/LoginModal.module.css';

import Emoji from '../../../assets/img/you-got-this-emoji.png';
import { useAuthOptionalLogin } from '../../../auth/auth_utils';
import { useHistory } from 'react-router-dom';

type Props = {
open: boolean;
Expand Down
6 changes: 2 additions & 4 deletions client/src/modules/Course/Components/ReviewModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useEffect, useState } from 'react';
import axios from 'axios';

import MultiSelect from './MultiSelect';
import SingleSelect from './SingleSelect';
Expand Down Expand Up @@ -59,9 +58,8 @@ const ReviewModal = ({
const [workload, setWorkload] = useState<number>(3);

const [loginModalOpen, setLoginModalOpen] = useState<boolean>(false);
const [noReviews, setNoReviews] = useState<boolean>(false);

const { isLoggedIn, netId, signIn } = useAuthOptionalLogin();
const { isLoggedIn, signIn } = useAuthOptionalLogin();

const [valid, setValid] = useState<Valid>({
professor: false,
Expand Down Expand Up @@ -133,7 +131,7 @@ const ReviewModal = ({

// Handle click of submit button
function onSubmitReview() {
if (!noReviews && isLoggedIn) {
if (isLoggedIn) {
handleSubmitReview();
signIn('profile');
} else {
Expand Down
17 changes: 1 addition & 16 deletions client/src/modules/Course/Styles/ReviewModal.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
font-weight: 500;
color: var(--clr-blue-300);
margin-top: -1em;
margin-bottom: -1.5em;
margin-bottom: -1em;
text-align: center;
}

Expand All @@ -150,21 +150,6 @@
color: #a8a8a8;
}

/* for future tags feature - placeholder */
.tags {
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
width: 100%;
height: 100px;
font-size: 1em;
letter-spacing: 1ch;
font-weight: 500;
border: 2px solid var(--clr-blue-200);
color: var(--clr-blue-300);
}

.submitbutton {
width: 100%;
height: 39px;
Expand Down

0 comments on commit d040bbd

Please sign in to comment.