Delivery Issues: Show simpler message when displayed in a group
This commit is contained in:
parent
85004699f5
commit
114a9b6969
6 changed files with 48 additions and 5 deletions
|
@ -12,6 +12,7 @@ import { DeliveryIssueDialog } from './DeliveryIssueDialog';
|
|||
|
||||
export type PropsDataType = {
|
||||
sender?: ConversationType;
|
||||
inGroup: boolean;
|
||||
};
|
||||
|
||||
type PropsHousekeepingType = {
|
||||
|
@ -23,7 +24,7 @@ export type PropsType = PropsDataType & PropsHousekeepingType;
|
|||
export function DeliveryIssueNotification(
|
||||
props: PropsType
|
||||
): ReactElement | null {
|
||||
const { i18n, sender } = props;
|
||||
const { i18n, inGroup, sender } = props;
|
||||
const [isDialogOpen, setIsDialogOpen] = useState<boolean>(false);
|
||||
|
||||
const openDialog = useCallback(() => {
|
||||
|
@ -59,6 +60,7 @@ export function DeliveryIssueNotification(
|
|||
{isDialogOpen ? (
|
||||
<DeliveryIssueDialog
|
||||
i18n={i18n}
|
||||
inGroup={inGroup}
|
||||
sender={sender}
|
||||
onClose={closeDialog}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue