mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-10-30 02:12:39 +00:00
cleanup
This commit is contained in:
@@ -109,7 +109,7 @@ const AccessPoints = ({ checkedLocations }) => {
|
||||
}
|
||||
);
|
||||
|
||||
const reloadTable = () => {
|
||||
const handleOnRefresh = () => {
|
||||
refetch()
|
||||
.then(() => {
|
||||
notification.success({
|
||||
@@ -158,7 +158,7 @@ const AccessPoints = ({ checkedLocations }) => {
|
||||
return (
|
||||
<NetworkTableContainer
|
||||
activeTab="/network/access-points"
|
||||
reloadTable={reloadTable}
|
||||
onRefresh={handleOnRefresh}
|
||||
tableColumns={accessPointsTableColumns}
|
||||
tableData={equipData && equipData.filterEquipment && equipData.filterEquipment.items}
|
||||
onLoadMore={handleLoadMore}
|
||||
|
||||
@@ -62,7 +62,7 @@ const ClientDevices = ({ checkedLocations }) => {
|
||||
});
|
||||
};
|
||||
|
||||
const reloadTable = () => {
|
||||
const handleOnRefresh = () => {
|
||||
refetch()
|
||||
.then(() => {
|
||||
notification.success({
|
||||
@@ -85,10 +85,10 @@ const ClientDevices = ({ checkedLocations }) => {
|
||||
return (
|
||||
<NetworkTableContainer
|
||||
activeTab="/network/client-devices"
|
||||
reloadTable={reloadTable}
|
||||
tableColumns={clientDevicesTableColumns}
|
||||
tableData={data && data.filterClientSessions && data.filterClientSessions.items}
|
||||
onLoadMore={handleLoadMore}
|
||||
onRefresh={handleOnRefresh}
|
||||
isLastPage={data && data.filterClientSessions && data.filterClientSessions.context.lastPage}
|
||||
loading={loading}
|
||||
error={error && !data?.filterClientSessions?.items && 'Failed to load client devices.'}
|
||||
|
||||
Reference in New Issue
Block a user