Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/components/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ export default function UserCalendar() {
const router = useRouter();

const handleSelectSlot = async ({ start, end }) => {
if (!isLoggedIn) {
setShowLoginModal(true);
return;
}
// TEMP: Allow event modal to open without login for testing
// if (!isLoggedIn) {
// setShowLoginModal(true);
// return;
// }
setModalStart(start);
setModalEnd(end);
setShowModal(true);
Expand Down
1 change: 1 addition & 0 deletions src/components/ContactTabInModal.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";
import Image from "next/image";
import Button from "./Button";

Check warning on line 3 in src/components/ContactTabInModal.jsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this unused import of 'Button'.

See more on https://sonarcloud.io/project/issues?id=LaneLR_calendar-app&issues=AZrwoII_xIaFMHO8tZ6W&open=AZrwoII_xIaFMHO8tZ6W&pullRequest=97

export default function ContactTabInModal({ contact, isSelected, onToggle }) {
const trashcanImage = "/images/trashcan.png";
Expand Down
3 changes: 2 additions & 1 deletion src/components/DetailsContactTab.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";
import { useCalendar } from "@/context/CalendarContext";
import Image from "next/image";
import Button from "./Button";

Check warning on line 4 in src/components/DetailsContactTab.jsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this unused import of 'Button'.

See more on https://sonarcloud.io/project/issues?id=LaneLR_calendar-app&issues=AZrwoIJoxIaFMHO8tZ6X&open=AZrwoIJoxIaFMHO8tZ6X&pullRequest=97

export default function DetailsContactTab({ contact }) {
const trashcanImage = "/images/trashcan.png";
Expand All @@ -15,7 +16,7 @@
</div>
</div>
<div className="contacts__contact-snippet-wrapper">
<div className="contacts__contact-snippet">{contact.username}</div>
<button className="contacts__contact-snippet">{contact.username}</button>

Check warning on line 19 in src/components/DetailsContactTab.jsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

'contact.username' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=LaneLR_calendar-app&issues=AZrwoIJoxIaFMHO8tZ6Y&open=AZrwoIJoxIaFMHO8tZ6Y&pullRequest=97
</div>
{!contactExists ? (
<button
Expand Down
4 changes: 3 additions & 1 deletion src/components/UserOnEventInModal.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";

import Button from "./Button";

Check warning on line 3 in src/components/UserOnEventInModal.jsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Remove this unused import of 'Button'.

See more on https://sonarcloud.io/project/issues?id=LaneLR_calendar-app&issues=AZrwoIG1xIaFMHO8tZ6U&open=AZrwoIG1xIaFMHO8tZ6U&pullRequest=97

export default function UserOnEventInModal({ user, isSelected }) {
return (
<div
Expand All @@ -13,7 +15,7 @@
</button>
</div>
<div className="contacts__contact-snippet-wrapper">
<div className="contacts__contact-snippet">{user.username}</div>
<button className="contacts__contact-snippet">{user.username}</button>

Check warning on line 18 in src/components/UserOnEventInModal.jsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

'user.username' is missing in props validation

See more on https://sonarcloud.io/project/issues?id=LaneLR_calendar-app&issues=AZrwoIG1xIaFMHO8tZ6V&open=AZrwoIG1xIaFMHO8tZ6V&pullRequest=97
</div>
</div>
);
Expand Down
8 changes: 7 additions & 1 deletion src/styles/common/_contacts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
height: 60px;
width: 60px;
border-radius: 30px;
border: none;
display: flex;
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -48,6 +49,12 @@
text-overflow: ellipsis;
cursor: pointer;
color: var(--color-contacts-text);

background: none;
border: none;
padding: 0;
font: inherit;
text-align: left;
}

&__add-contact-button {
Expand All @@ -65,7 +72,6 @@
justify-content: center;
align-items: center;
width: 10%;
height: 100%;
position: relative;
}

Expand Down