Skip to content

Commit

Permalink
feat: add clear selection button
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Nov 5, 2024
1 parent 1d8c42a commit 3d4ca02
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/ResultsGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query';
import { Spinner, useFirebaseAuth } from '@ugrc/utah-design-system';
import { Button, Spinner, useFirebaseAuth } from '@ugrc/utah-design-system';
import { User } from 'firebase/auth';
import ky from 'ky';
import { useEffect, useState } from 'react';
Expand Down Expand Up @@ -155,6 +155,14 @@ export default function ResultsGrid() {
<span>
{' '}
| Selected: <strong>{selectedKeys === 'all' ? data?.length : selectedKeys.size}</strong>
<Button
variant="secondary"
// size="extraSmall"
onPress={() => setSelectedStationIds(new Set())}
className="ml-2"
>
Clear Selection
</Button>
</span>
)}
</span>
Expand Down

0 comments on commit 3d4ca02

Please sign in to comment.