From ff63a289a2babb740972cf51458f01ccf6e7697c Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sat, 26 Mar 2022 14:14:49 -0700 Subject: [PATCH] (ui): minor cleanup --- ui/src/components/AggregatingTasksTable.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ui/src/components/AggregatingTasksTable.tsx b/ui/src/components/AggregatingTasksTable.tsx index 533bd88..e34bc5c 100644 --- a/ui/src/components/AggregatingTasksTable.tsx +++ b/ui/src/components/AggregatingTasksTable.tsx @@ -1,4 +1,4 @@ -import React, { useCallback } from "react"; +import React, { useCallback, useState } from "react"; import { connect, ConnectedProps } from "react-redux"; import { makeStyles } from "@material-ui/core/styles"; import Checkbox from "@material-ui/core/Checkbox"; @@ -95,12 +95,10 @@ const columns: TableColumn[] = [ function AggregatingTasksTable( props: Props & ConnectedProps ) { - const [selectedGroup, setSelectedGroup] = React.useState( - null - ); - const [page, setPage] = React.useState(0); - const [selectedIds, setSelectedIds] = React.useState([]); - const [activeTaskId, setActiveTaskId] = React.useState(""); + const [selectedGroup, setSelectedGroup] = useState(null); + const [page, setPage] = useState(0); + const [selectedIds, setSelectedIds] = useState([]); + const [activeTaskId, setActiveTaskId] = useState(""); const { pollInterval, listGroupsAsync,