Skip to content

Commit

Permalink
Merge branch 'add-boundary-preset' into lock-asset-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
JahnabDutta committed Aug 30, 2023
2 parents 31f3ecf + e7f36b5 commit 6d71f33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/CAREUI/display/RecordMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const RecordMeta = ({ time, user, prefix, className }: Props) => {
let child = (
<div className="tooltip">
<span className="underline">{relativeTime(time)}</span>
<span className="tooltip-text flex gap-1 text-xs font-medium tracking-wider">
<span className="tooltip-text tooltip-bottom flex -translate-x-1/2 gap-1 text-xs font-medium tracking-wider">
{formatDateTime(time)}
{user && (
<>
Expand Down
7 changes: 5 additions & 2 deletions src/Components/Notifications/NoticeBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { formatDateTime } from "../../Utils/utils";
import { useTranslation } from "react-i18next";
import CareIcon from "../../CAREUI/icons/CareIcon";

export const NoticeBoard: any = () => {
export const NoticeBoard = () => {
const dispatch: any = useDispatch();
const [isLoading, setIsLoading] = useState(true);
const [data, setData] = useState<any[]>([]);
Expand All @@ -16,7 +16,10 @@ export const NoticeBoard: any = () => {
useEffect(() => {
setIsLoading(true);
dispatch(
getNotifications({ offset: 0, event: "MESSAGE", medium_sent: "SYSTEM" })
getNotifications(
{ offset: 0, event: "MESSAGE", medium_sent: "SYSTEM" },
new Date().getTime().toString()
)
)
.then((res: any) => {
if (res && res.data) {
Expand Down
4 changes: 2 additions & 2 deletions src/Redux/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,8 @@ export const partialUpdateExternalResult = (id: number, params: object) => {
};

// Notifications
export const getNotifications = (params: object) => {
return fireRequest("getNotifications", [], params);
export const getNotifications = (params: object, altKey?: string) => {
return fireRequest("getNotifications", [], params, {}, altKey);
};

export const getNotificationData = (pathParam: object) => {
Expand Down

0 comments on commit 6d71f33

Please sign in to comment.