mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
fix(ui): update default status to empty instead queued (#8713)
This commit is contained in:
parent
440e9ada75
commit
9eefed7457
@ -16,7 +16,7 @@ import classNames from 'classnames';
|
||||
import { compare, Operation } from 'fast-json-patch';
|
||||
import { isUndefined } from 'lodash';
|
||||
import { observer } from 'mobx-react';
|
||||
import React, { FC, useEffect, useState } from 'react';
|
||||
import React, { FC, useEffect, useRef, useState } from 'react';
|
||||
import AppState from '../../../AppState';
|
||||
import { ReactionOperation } from '../../../enums/reactions.enum';
|
||||
import { AnnouncementDetails } from '../../../generated/api/feed/createThread';
|
||||
@ -60,7 +60,7 @@ const ActivityFeedCard: FC<ActivityFeedCardProp> = ({
|
||||
const entityField = getEntityField(entityLink as string);
|
||||
|
||||
const currentUser = AppState.getCurrentUserDetails();
|
||||
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const [feedDetail, setFeedDetail] = useState<Post>(feed);
|
||||
|
||||
const [visible, setVisible] = useState<boolean>(false);
|
||||
@ -168,9 +168,10 @@ const ActivityFeedCard: FC<ActivityFeedCardProp> = ({
|
||||
{
|
||||
'tw-bg-gray-100': visible,
|
||||
}
|
||||
)}>
|
||||
)}
|
||||
ref={containerRef}>
|
||||
<Popover
|
||||
align={{ targetOffset: [0, -35] }}
|
||||
align={{ targetOffset: [0, -14] }}
|
||||
content={
|
||||
<PopoverContent
|
||||
isAnnouncement={!isUndefined(announcementDetails)}
|
||||
@ -187,6 +188,7 @@ const ActivityFeedCard: FC<ActivityFeedCardProp> = ({
|
||||
/>
|
||||
}
|
||||
destroyTooltipOnHide={{ keepParent: false }}
|
||||
getPopupContainer={() => containerRef.current || document.body}
|
||||
key="reaction-options-popover"
|
||||
overlayClassName="ant-popover-feed"
|
||||
placement="topRight"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user