-
Notifications
You must be signed in to change notification settings - Fork 2
Admin bulk action footer #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c1699f1
394d4d5
c06c77c
7c6b27f
634246f
a277b1c
482a2cb
c2e8d39
a3ba668
25c0776
55c74d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -95,6 +95,16 @@ const BookingSelectionFooter = ({ selectedIds, processedData, onSelectionChange | |||||||||||
| <div className={styles.footerContainer}> | ||||||||||||
|
|
||||||||||||
| <div className={styles.selectionGroup}> | ||||||||||||
| <Button | ||||||||||||
| className={styles.deselectIconBtn} | ||||||||||||
| onClick={() => onSelectionChange(new Set())} | ||||||||||||
| title="Deselect all" | ||||||||||||
| > | ||||||||||||
| ✕ | ||||||||||||
|
Comment on lines
+102
to
+103
|
||||||||||||
| > | |
| ✕ | |
| aria-label="Deselect all" | |
| > | |
| <span aria-hidden="true">✕</span> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,7 @@ function BookingAdminTable() { | |
| useTableState(bookingViewData); | ||
|
|
||
| return ( | ||
| <> | ||
| <Segment.Group raised> | ||
| <Segment secondary> | ||
| <SearchBar fluid onFilterChange={onFilterChange} disabled={selectedBookingIds.size !== 0} /> | ||
|
|
@@ -98,6 +99,7 @@ function BookingAdminTable() { | |
| adminView | ||
| selectedBookingIds={selectedBookingIds} | ||
| onSelectionChange={setSelectedBookingIds} | ||
| footerHeight={selectedBookingIds.size > 0 ? 25 : 0} | ||
| > | ||
| <Column<BookingViewProps> | ||
| key={ID} | ||
|
|
@@ -174,6 +176,13 @@ function BookingAdminTable() { | |
| onSelectionChange={setSelectedBookingIds} | ||
| /> | ||
| </Segment.Group> | ||
|
|
||
| <BookingSelectionFooter | ||
| selectedIds={selectedBookingIds} | ||
| processedData={processedData} | ||
| onSelectionChange={setSelectedBookingIds} | ||
| /> | ||
|
Comment on lines
+180
to
+184
|
||
| </> | ||
| ); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch