-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🩹 Sign
addOpening
tx with role account (#4770)
* Sign `addOpening` tx with role account * Do not pick a member to create an opening or leave a role * Fix some other minor bugs * Fix tests * Fix the "See my Opening" link * Do not check memberships to create an opening * Fix tests * Fix the workers sidebar logic
- Loading branch information
Showing
18 changed files
with
273 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/ui/src/app/pages/WorkingGroups/WorkingGroup/components/WorkerListSidebar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
|
||
import { SidePanel } from '@/common/components/page/SidePanel' | ||
import { WorkersList } from '@/working-groups/components/WorkersList' | ||
import { useWorkers } from '@/working-groups/hooks/useWorkers' | ||
import { WorkingGroup } from '@/working-groups/types' | ||
|
||
interface Props { | ||
workingGroup: WorkingGroup | ||
} | ||
|
||
export const WorkerListSidebar = ({ workingGroup }: Props) => { | ||
const { workers } = useWorkers({ groupId: workingGroup.id ?? '', status: 'active' }) | ||
const lead = workingGroup.isActive ? workers?.find((worker) => worker.member.id === workingGroup.leadId) : undefined | ||
|
||
return ( | ||
<SidePanel scrollable> | ||
<WorkersList lead={lead} workers={workers} /> | ||
</SidePanel> | ||
) | ||
} |
Oops, something went wrong.