mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-23 06:46:11 +08:00
Use icons for table row actions
This commit is contained in:
@@ -18,7 +18,7 @@ import MoreHorizIcon from "@material-ui/icons/MoreHoriz";
|
||||
import DeleteQueueConfirmationDialog from "./DeleteQueueConfirmationDialog";
|
||||
import { Queue } from "../api";
|
||||
import { queueDetailsPath } from "../paths";
|
||||
import { SortDirection, ColumnConfig } from "../types/table";
|
||||
import { SortDirection, SortableTableColumn } from "../types/table";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
table: {
|
||||
@@ -71,7 +71,7 @@ enum SortBy {
|
||||
None, // no sort support
|
||||
}
|
||||
|
||||
const colConfigs: ColumnConfig<SortBy>[] = [
|
||||
const colConfigs: SortableTableColumn<SortBy>[] = [
|
||||
{ label: "Queue", key: "queue", sortBy: SortBy.Queue, align: "left" },
|
||||
{ label: "Size", key: "size", sortBy: SortBy.Size, align: "right" },
|
||||
{ label: "Active", key: "active", sortBy: SortBy.Active, align: "right" },
|
||||
|
Reference in New Issue
Block a user