Skip to content
Open
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
5 changes: 3 additions & 2 deletions src/components/Auth/apiClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ export class ApiClient {
UserID: "abc",
FirstName: "john",
LastName: "doe",
Type: "Admin",
Picture: "https://imgs.search.brave.com/DZmzoTAPlNT9HUb2ISfyTd_sPZab1hG4VcyupoK2gwE/rs:fit:860:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAwLzYxLzU0LzA4/LzM2MF9GXzYxNTQw/ODU1X3lFYmIwTlRr/d3ZJVzdaZG1KeThM/aHU1WHJPMXlweURl/LmpwZw",
Type: "Supervisor",
// Type: "Associate",
Picture: "https://www.google.com/koala.png",
};
}

Expand Down
5 changes: 4 additions & 1 deletion src/components/TimeCardPage/CellTypes/CommentCell.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect, useContext } from "react";
import { Stack } from "@chakra-ui/react";
import {IconButton, Stack} from "@chakra-ui/react";

import { UserContext } from "../UserContext";
import { CommentSchema, ReportSchema } from "../../../schemas/RowSchema";
Expand All @@ -8,6 +8,7 @@ import { getAllActiveCommentsOfType } from "../utils";

import ShowCommentModal from "./CommentModals/ShowCommentModal";
import ShowReportModal from "./CommentModals/ShowReportModal";
import {AddIcon, WarningIcon} from "@chakra-ui/icons";

interface CommentProps {
comments: CommentSchema[] | undefined;
Expand Down Expand Up @@ -36,6 +37,7 @@ export function CommentCell({
}
}, [user?.Type]);


return (
<Stack direction='row'>
<ShowCommentModal
Expand All @@ -44,6 +46,7 @@ export function CommentCell({
isEditable={isEditable}
timesheetID={timesheetID}
/>

<ShowReportModal
date={date}
setReports={setReports}
Expand Down
Loading