Skip to content

Commit 059e9c7

Browse files
author
Alexandra Zwinger
committed
Remove add title text
1 parent 625372d commit 059e9c7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/components/calendar/meeting/MeetingDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const MeetingDetails: React.FC<ModalProps> = ({isOpen, meeting, onClose,
9191
{userIds.length === 0 && <></>}
9292
</ul>
9393
</div>
94-
{meeting.creator === myUser.uuid ? (
94+
{meeting.creator === myUser.username ? (
9595
<div className="flex flex-row gap-4 mb-4 justify-end mt-auto items-center">
9696
<div>
9797
<CuteButton

src/components/yourStudies/ModuleProgressSettings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const ModuleProgressSettings: React.FC<ModalProps> = ({onClose, module, allUserM
3535
const addCheckbox = (chapterId: number) => {
3636
const newCheckbox = {
3737
id: Date.now().toString(),
38-
title: `Add Title`,
38+
title: undefined,
3939
checked: false,
4040
};
4141

@@ -127,6 +127,7 @@ const ModuleProgressSettings: React.FC<ModalProps> = ({onClose, module, allUserM
127127
type="text"
128128
className={"flex-grow px-2"}
129129
value={checkbox.title}
130+
placeholder={"Add title"}
130131
onChange={(e) => {
131132
const newText = e.target.value;
132133
setChapters((prevChapters) =>

src/dtos/ModuleDto.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type UserModule = {
88

99
export type Checkbox = {
1010
id: string;
11-
title: string;
11+
title: string | undefined;
1212
checked: boolean;
1313
}
1414

0 commit comments

Comments
 (0)