Skip to content

Commit

Permalink
update group event
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-lem committed Mar 5, 2025
1 parent 9c3d662 commit f5d9efc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/entities/events/ui/global-event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Icon } from "@iconify-icon/react";
import { format } from "date-fns";
import { BRANCH_EVENTS, GROUP_EVENTS, STANDARD_EVENTS } from "../constants";
import { BranchEventTitle } from "./branch-events/branch-event-title";
import { GroupEvent } from "./group-events/global-group-event";
import { GroupEventTitle } from "./group-events/group-event-title";
import { NodeEventTitle } from "./node-events/node-event-title";
import { StandardEvent } from "./standard-events/global-standard-event";

Expand All @@ -24,7 +24,7 @@ const GlobalEventDisplay = ({ __typename, ...props }: EventType) => {
}

if (GROUP_EVENTS.includes(__typename)) {
return <GroupEvent {...props} />;
return <GroupEventTitle {...props} />;
}

return <span className="flex items-center text-sm text-gray-500 ">{props.event}</span>;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,14 @@ export const GROUP_EVENTS_MAPPING: Record<string, (props: EventNodeInterface) =>
},
};

export const GroupEvent = (props: EventNodeInterface) => {
export const GroupEventTitle = (props: EventNodeInterface) => {
const { event, account_id } = props;

return (
<>
<div className="flex items-center justify-between">
<div className="flex items-center gap-2 text-sm">
<div className="font-semibold">
<NodeLabel id={account_id} />
</div>
<div className="flex items-center gap-1 text-sm">
<NodeLabel id={account_id} />

<div className="text-gray-500">
{GROUP_EVENTS_MAPPING[event] && GROUP_EVENTS_MAPPING[event](props)}
Expand Down

0 comments on commit f5d9efc

Please sign in to comment.