|
@@ -8,11 +8,10 @@ interface Props {
|
|
|
notification: IInAppNotification
|
|
notification: IInAppNotification
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const InAppNotificationElm = (props: Props): JSX.Element => {
|
|
|
|
|
|
|
+const InAppNotificationElm = (props: Props): JSX.Element => {
|
|
|
|
|
|
|
|
const { notification } = props;
|
|
const { notification } = props;
|
|
|
|
|
|
|
|
- // TODO get actionUsers with mongoose virtual method by #79077
|
|
|
|
|
const getActionUsers = () => {
|
|
const getActionUsers = () => {
|
|
|
const latestActionUsers = notification.actionUsers.slice(0, 3);
|
|
const latestActionUsers = notification.actionUsers.slice(0, 3);
|
|
|
const latestUsers = latestActionUsers.map((user) => {
|
|
const latestUsers = latestActionUsers.map((user) => {
|
|
@@ -83,3 +82,5 @@ export const InAppNotificationElm = (props: Props): JSX.Element => {
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+export default InAppNotificationElm;
|