Skip to content

Commit

Permalink
rm unused viewmode code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Feb 27, 2025
1 parent 968ca7d commit d83f803
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions serviceradar-next/src/components/NodeList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function NodeList({ initialNodes = [] }) {
const [nodesPerPage] = useState(10);
const [sortBy, setSortBy] = useState('name');
const [sortOrder, setSortOrder] = useState('asc');
const [viewMode, setViewMode] = useState('table');

// Use the improved API client with 30 second polling instead of 10
const { data: nodes, error, isLoading } = useAPIData('/api/nodes', initialNodes, 30000);
Expand Down Expand Up @@ -179,9 +178,6 @@ function NodeList({ initialNodes = [] }) {
</div>
)}

{/* Main content */}
{viewMode === 'table' && renderTableView()}

{/* Pagination */}
{pageCount > 1 && (
<div className="flex justify-center gap-2 mt-4">
Expand Down

0 comments on commit d83f803

Please sign in to comment.