Skip to content

Commit

Permalink
added transfer frontend (processing)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanapl committed Feb 4, 2024
1 parent 3e4f60f commit 30a9451
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frontend/src/components/molecules/EventGroupTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const EventGroupTab: FC<Props> = ({ group }) => {
return 1;
case router.asPath.includes("role"):
return 2;
case router.asPath.includes("transfer"):
return 3;
default:
break;
}
Expand Down Expand Up @@ -81,6 +83,21 @@ const EventGroupTab: FC<Props> = ({ group }) => {
{t.RBAC_EDIT_COLLABORATORS}
</Tab>
)}
{(group.ownerAddress === address) && (
<Tab
_selected={{
borderColor: "mintGreen.300",
borderWidth: 1,
borderBottom: "none",
backgroundColor: "mintGreen.50",
}}
onClick={() =>
router.push(`/event-groups/${router.query.eventgroupid}/transfer`)
}
>
{t.EVENT_GROUP_TAB_TRANSFER}
</Tab>
)}
</TabList>
</Tabs>
);
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
// Event group tab
EVENT_GROUP_TAB_EVENTS: "Event List",
EVENT_GROUP_TAB_LEADERS: "Leader Board",
EVENT_GROUP_TAB_TRANSFER: "Transfer Owner",
// Event group leaders
EVENT_GROUP_LEADERS_RANK: "RANK",
EVENT_GROUP_LEADERS_ADDRESS: "ADDRESS",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
// Event group tab
EVENT_GROUP_TAB_EVENTS: "イベント一覧",
EVENT_GROUP_TAB_LEADERS: "リーダーボード",
EVENT_GROUP_TAB_TRANSFER: "権限譲与",
// Event group leaders
EVENT_GROUP_LEADERS_RANK: "ランク",
EVENT_GROUP_LEADERS_ADDRESS: "アドレス",
Expand Down

0 comments on commit 30a9451

Please sign in to comment.